Page 1 of 1

how to run the dos commands from control-m job

Posted: 17 Jun 2010 9:59
by jayaprakash
I am calling the vb script from the control-m job. Inside the vb script there are couple of copy and delete file operations. The copy file from local folder to other server using (\\nts0014\...).

I tried with option to map the drive and copy. It didn't work and hanging at the command.

Please help me out. Immediate help will be appreciated.

Posted: 17 Jun 2010 5:54
by baralem
Is control-m agent running as "LOCAL SYSTEM"? If you are copying file to another server the Agent account must have permissions to write in the remote server. Have you checked that? Can you log on with Control-m user account and run the job manually? Does it work that way?

regards
martin

Posted: 19 Jun 2010 9:06
by jayaprakash
The control-m agent is running as local system and registed with the user 'GA_ProdJobtest'. I have setup the owner in the job also same.

I have login as user id 'GA_ProdJobtest' and executed the script directly and complete successfully.

Please help me out.

Posted: 19 Jun 2010 9:14
by jayaprakash
Can you log on with Control-m user account and run the job manually? Does it work that way?
Here control-m user account you mean the account which i have used for the job setup or else.

Posted: 19 Jun 2010 3:39
by baralem
Can you change Control-M agent services account from "LOCAL SYSTEM" to "GA_ProdJobtest" and execute the job again?
Agent works different on windows and unix. Jobs on windows runs as "LOCAL SYSTEM" unless you set up "Logon as user":

Flag that specifies which user account is used for the services to log
on to.
Selected – Jobs are submitted with the permissions and
environment variables of the specified user.
Not selected – Jobs are submitted with the permissions and
environment variables of the local system account. Default.

regards.

Posted: 24 Jun 2010 9:50
by matom
Hello jayaprakash,

Define a Control-M/job with a ".bat" file in "File Name" field.
In the ".bat" file call the vb script.

Regards
Michel

Posted: 05 Jan 2013 3:43
by shahidsaif
matom wrote:Hello jayaprakash,

Define a Control-M/job with a ".bat" file in "File Name" field.
In the ".bat" file call the vb script.

Regards
Michel

with vb script?