Hi there,
I have scheduled a job/command on windows(XP) by invoking a .bat file on the test machine with agent as shown below.
I:\TestsPerformance_ControlM\RunPerfTest_Prod_EU.bat
It runs fine but fails sometimes weirdly by searching for a bat file by removing folder separating slashes.
The syslog in control-M EM shows the following message:
***************************************************
+ I:TestsPerformance_ControlMRunPerfTest_Prod_EU.bat
/tmp/ctm/CMD.1015107: I:TestsPerformance_ControlMRunPerfTest_Prod_EU.bat: not found
***************************************************
Has anyone come across this situation? why are the slashes removed.
Any help on this will be greatly appreciated.
Thanks
Sunitha
Control-M job fails saying bat file not found
No, The command I specified in job is exactly the same as in my posting. The only thing I did not mention here is I am passing a parameter along with the command as shown below:
I:\TestsPerformance_ControlM\RunPerfTest_Prod_EU.bat "Noon Run"
It runs sometimes and fails sometimes. I am using Control-M version 6.1.03
I:\TestsPerformance_ControlM\RunPerfTest_Prod_EU.bat "Noon Run"
It runs sometimes and fails sometimes. I am using Control-M version 6.1.03
It seems like the backslashes are discarded. Have you tried using your command between quotationmarks, like this:
"I:\TestsPerformance_ControlM\RunPerfTest_Prod_EU.bat" "Noon Run"
You could also try to use double backslashes. I know in Unix a backslash is used to ignore a special character, ofcourse this is a Windows-job, but maybe it'll work.
"I:\TestsPerformance_ControlM\RunPerfTest_Prod_EU.bat" "Noon Run"
You could also try to use double backslashes. I know in Unix a backslash is used to ignore a special character, ofcourse this is a Windows-job, but maybe it'll work.
This command can be run as a "commadn" tasktype, but, better, it can be run as "job" tasktype were:I:\TestsPerformance_ControlM\RunPerfTest_Prod_EU.bat "Noon Run"
path: I:\TestsPerformance_ControlM
memname\filename: RunPerfTest_Prod_EU.bat
and in the set panel pass the parameter as : PARM1="Noon Run".
And on whitcth agent execute this command?
NODEID field !
If this field is empy the job is submitted to the server machine, but in the log of the job is reported the name of the agent were is submitted ......
)))