I tried executing the Perl application remotely using the STAF process start command & it doesn't work.
I created a simple PERL script which launches a cmd window & notepad; also I had a delay when for this. Created a batch file snnote.bat which had the Perl execution command - Perl -mPLSTAF snnote.pm
From the remote machine, I executed the following command
staf <remote-hostname> process start command c:\staf\bin\snnote.bat
It executes with a response, but doesn't open up a notepad or cmd window on remote machine.
If I execute this locally it works fine.
Does anybody have some information on how to execute PERL applications remotely using the STAF services?
If you add the following options to the command, do you get any errors returned?
staf <remote-hostname> process start command c:\staf\bin\snnote.bat returnstdout returnstderr wait
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-06-16
Thanks David,
This works fine. I had Perl execution env problem remotely as the PLSTAF, STAFMon & STAFLog were used in the Perl script. I created the batch file with -I option to these STAF pm's.
perl -Ic:\staf\bin c:\staf\bin\snnote.pm
Also, I used the option you provided from local machine & works fine.
Thanks a lot for your help
Sreedhara Narayanaswamy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I tried executing the Perl application remotely using the STAF process start command & it doesn't work.
I created a simple PERL script which launches a cmd window & notepad; also I had a delay when for this. Created a batch file snnote.bat which had the Perl execution command - Perl -mPLSTAF snnote.pm
From the remote machine, I executed the following command
staf <remote-hostname> process start command c:\staf\bin\snnote.bat
It executes with a response, but doesn't open up a notepad or cmd window on remote machine.
If I execute this locally it works fine.
Does anybody have some information on how to execute PERL applications remotely using the STAF services?
Thanks,
Sreedhara Narayanaswamy
Sreedhara.Narayanaswamy@ca.com
If you add the following options to the command, do you get any errors returned?
staf <remote-hostname> process start command c:\staf\bin\snnote.bat returnstdout returnstderr wait
Thanks David,
This works fine. I had Perl execution env problem remotely as the PLSTAF, STAFMon & STAFLog were used in the Perl script. I created the batch file with -I option to these STAF pm's.
perl -Ic:\staf\bin c:\staf\bin\snnote.pm
Also, I used the option you provided from local machine & works fine.
Thanks a lot for your help
Sreedhara Narayanaswamy