Menu

Executing PERL application remotely

Anonymous
2004-06-16
2004-06-16
  • Anonymous

    Anonymous - 2004-06-16

    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

     
    • David Michael Bender

      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

       
    • Anonymous

      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

       

Log in to post a comment.