in reply to How to run a command from Perl

By throws an error, do you mean prints "Command Failed"? See system for information on how to see what might have gone wrong.

Replies are listed 'Best First'.
Re^2: How to run a command from Perl
by Anonymous Monk on Jan 18, 2008 at 09:53 UTC
    Hi, This is the error I got:
    C:\MIG>perl label.pl 2 ret code=0 Command to execute=srvrmgr û g ûe ûs ûp ûc Run Task for comp proc +essName="U DA Batch Deployment", "RowId=" 'srvrmgr' is not recognized as an internal or external command, operable program or batch file. Command Failed ret code=1 ret code=0 Command to execute=` ûg ûe ûs ûp ûc Run Task for comp processName +="UDA Batc h Deployment", "RowId=" '`' is not recognized as an internal or external command, operable program or batch file. Command Failed ret code=1
    Thanks Ethen
      So did you read that message? It's fairly obvious: The comamnds srvmgr and ` can't be found.

      The first one is probably not found in PATH, so you have to adjust the environment variables accordingly.

      The second is clearly an error in the way you try to call some program.

      Provide the full path to svrmgr, e.g. on windows 'c:\\full\\path\\to\\svrmgr' or VMS dka1:[full.path.to]svrmgr.