in reply to Re: How to run a command from Perl
in thread How to run a command from Perl

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

Replies are listed 'Best First'.
Re^3: How to run a command from Perl
by moritz (Cardinal) on Jan 18, 2008 at 10:18 UTC
    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.

Re^3: How to run a command from Perl
by hipowls (Curate) on Jan 18, 2008 at 10:18 UTC

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