on 2009 Feb 05 2:25 PM
Hello,
I've developyed a Java program and deployed it on WAS v7.1.
My java program tries to run a remote batch file which is located on remote Windows file system (and not on the WAS file system itself).
The batch file was launched on the remote server (I saw it on the Task Manager of the remote server), but the remote batch file actually wasn't run (it was stuck).
In order to run the remote batch file from my java program that is deployed on the WAS I've created a batch file on the WAS file system which its contnet is:
cd c:\jobs
psexec.exe
iltlvt40 -u SAPServiceCE1 -p a2i2000! c:\automation\DiskSpace\runDiskSpace.bat
The jobs folder contains the psexec.exe file (you can find more details about the psexec on this link: http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx).
iltlvt40 is the remote server.
SAPServiceCE1/a2i2000! is a user/password on the remote server which has a full permissions.
My java program calls this batch file using the Runtime.exec() java method in order to run the remote batch file.
Please guide me how to solve this problem?
Best regards,
Ahmad
Request clarification before answering.
Hi,
To which batch file you have meant to add some commands: for the local one or remote?
I've added to the local one some different commands and it's works.
I think there is a permission problem when we are trying to go out of the WAS file system.
Best regards,
Ahmad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
54 | |
6 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.