When running a Perl or Python script on a Unix/Linux host using in a Control-M job with the "What" attribute set to Embedded Script, the job fails with the error "command not found". "command not found" The Control-M/Agent is expecting a common shell script as a the Embedded Script. The embedded script can run perl or python with small modifications |
Rather than specifying #!/usr/bin/perl in the header, execute the perl script by redirecting STDIN to the perl interpreter. |