I'm returned a status of the command and other information after it's excuted...
I'm not having trouble running the command.Here's my command that I run at the cmd prompt:e:/Interwoven/OpenDeployNG/bin/iwodcmd.exe start CPProductionImmed Here's that's displayed after the command is ran:Locating OpenDeploy service. Got OpenDeploy service >>>>>-- Start deployment CPProductionImmed. iwodstart running in default synchronous mode. Need to wait for deployment to complete. ***ERROR - Starting deployment. Reason from server: DEPLOYMENT_NOT_QUEUED Details : Deployment CPProductionImmed is already running. Request to start it now cannot be done. Rejecting request. I'm running this command in my IPL as:$sdCMD = "e:/Interwoven/OpenDeployNG/bin/iwodcmd.exe start CPProductionImmed"; #run command `$sdCMD `;everything runs fine, but I want to see the text that outputed in the comand prompt window
my $results = qx|$deploy_cmd 2>&1|;
I am not sure in the Windows you can redirect stderr to stdout with 2>&1.Try this in the script:my $result = qx{command args};$result = $?;$? returns the status of the command executed.
my $result = qx{$command 2>&1};my $status = $?;if ($status || $result =~ /(?:error|fail|reject)/smi){ # error}else { # success}