How can I get this Shout destination working on Windows?, I want to use it on Control-M 6.4
# Destination Type Adr Logical Name Physical Name
--- ---------------- --- ----------------- ----------------------------
1 O S CONSOLE 2 E S ECS
3 L S IOALOG
4 P S KILLJOB /tmp/killjob.sh
Is the path for the script correct?
I am using this code for the script:
echo "Lanzado KILL JOB: $2" > /tmp/prueba_kill.txt &
ctmkilljob -ORDERID $2 &
ctmshout -DEST ECS -SEVERITY U -MESSAGE "JOB with ORDERID=$2 was Killed " &
I'm not really used to UNIX commands, so I haven't been able to addapt this procedure for Control-M for Windows.
Any help I can get from you?
Regards.
GET SHOT DESTINATION WORKING
KILLING JOB THROUGH SCRIPT
The path is a UNIX path so definitely won't be correct for Windows.
To get the rest to work, just change the $2 to %2 (Unix to Windows).
My script has the following code:
cd C:\Program Files\BMC Software\CONTROL-M Server\Ctm_server\Exe
ctmkilljob -ORDERID %2
I don't know why I had to specify the path and it shouldn't have been necessary, but for some reason it was in this case.
To get the rest to work, just change the $2 to %2 (Unix to Windows).
My script has the following code:
cd C:\Program Files\BMC Software\CONTROL-M Server\Ctm_server\Exe
ctmkilljob -ORDERID %2
I don't know why I had to specify the path and it shouldn't have been necessary, but for some reason it was in this case.
- rich_arredondo
- Nouveau
- Posts: 16
- Joined: 04 Nov 2011 12:00
Procedure to get shout destination working
Did you do it with a batch (.bat) file called from the shout destination table?
KILLING JOB THROUGH SCRIPT
Yes, I did.