in reply to How to run a command from Perl

What error does it "throw"?

Without you providing the error message, it's kinda hard to guess, but I'm trying:

The string:

$Src_Cmd = "srvrmgr – g $GATEWAY –e $ENTERPRISE_SERVER –s $USER –p $PA +SSWD –c Run Task for comp $SYSTEM_NAME processName=\"UDA Batch Deplo +yment\", "RowId=$row_id";

has unbalanced/unquoted double quotes. Perl even tells you that there is an error in the first line. I suggest using the qq operator instead:

$Src_Cmd = qq{srvrmgr – g $GATEWAY –e $ENTERPRISE_SERVER –s $USER –p $ +PASSWD –c Run Task for comp $SYSTEM_NAME processName="UDA Batch Depl +oyment", "RowId=$row_id"};