Run a windows batch file from Control-m

Some examples running with Control-M and Control-EM database.
Post Reply
User avatar
Hajsha
Nouveau
Nouveau
Posts: 13
Joined: 17 Jun 2013 12:00

Run a windows batch file from Control-m

Post by Hajsha » 20 Jun 2013 11:38

I need to run a windows batch file from control-m. when the batch file is executed directly from the server it works fine. But when the batch file is called from control-m some proxy issue is occuring. Is there any script that can be called from control-m in-turn it will call the batch file?
or any ideas to over come this issue?

User avatar
jstarkw
Nouveau
Nouveau
Posts: 58
Joined: 14 Jan 2010 12:00

Post by jstarkw » 26 Jun 2013 8:52

Hi,

Are you running the batch file in control-m as the same user (owner) that runs successfully when done manually? If you do not select "Logon as: Local system account" in the agent service properties (Logon tab) it will always run as the entry in "Logon as: This account". It will not matter what you set the Owner to. It will always run as "This Account"

There are other settings that must be changed on the windows agent server and in control-m if you select "Logon as: Local system account".

Might be easier to grant permission to "This Account" id to run the batch file.

User avatar
Hajsha
Nouveau
Nouveau
Posts: 13
Joined: 17 Jun 2013 12:00

Post by Hajsha » 08 Jul 2013 7:57

Hi Jstarkw,
Thanks for your reply.
Our SysAdmin team also have suggested the same that to run the control-m agent service to be 'logon as' the account not as local system.So changed the account to some other account name and the job going successful.

Post Reply