I succeeded to create a Job with Control M- Desktop using an "Embedded Script" (after checking the box and edit my command).
It works perfectly : I can define my own "Job name" and "File Name".
But I intend to create the same job via the ctmcreate command : this job would use the -EMBEDDED_SCRIPT.
My command line is, as instance :
Code: Select all
ctmcreate -TASKTYPE JOB -JOBNAME TEST -EMBEDDED_SCRIPT "/tmp/bar/foo"
Code: Select all
ctmcreate -TASKTYPE JOB -JOBNAME TEST -EMBEDDED_SCRIPT "/tmp/bar/foo"
Output:
cannot open '/tmp/bar/foo' file. rc = 2
usage: ctmcreate
-TASKTYPE <JOB>
[ -GROUP <group> ]
[ -APPLICATION <applic> ]
[ -DEBUG <debug> ]
...
...
Thank you for your help..!