Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

at not working. 1

Status
Not open for further replies.

bigscouse

MIS
Oct 6, 1998
420
GB
Can any onr help?<br>
I have started the schedule service but when I issue jobs with the at command they do not run. The jobs are scheduled correctly as I have listed by typing at with no parameters. A sample command I have tried is: -<br>
at 09:25 "cmd /c ged.bat" <br>
where ged.bat contains 'dir &gt; c:\test/log'<br>
<br>
Thanks.
 
Your first source of information here is the event log, also I would recommend the resource kit's scheduler. It does the same thing but with a graphical interface and some validation of your schedule. Essentially it is necessary to srew around with it until it does work.<br>
<br>
duncan
 
Just a thought, I found you should stop and restart the schedule service anytime you make a change to a job. Other wise the new entries wont fire off at the expected time.
 
Try...<br>
at 09:25 /INTERACTIVE cmd /c ged.bat<br>
<br>
This will run cmd with the logged on users rights. Without the /INTERACTIVE switch the command runs with system rights which doesn't have the right to launch batch jobs.<br>
<br>
<br>
Ants<br>
<br>

 
Just another suggestiong try checking the service account ID make sure that the at service has the apprtopraite rights to run the program, (I am guessing that this is not your final application). <br>
<br>
at 9:25pm get.bat<br>
<br>
loose the cme and quotes etc. and unless it needs to interact with the desktop you should not need /interactive.<br>
<br>
Note when using at or soon to schedule programs to a remote NT machine you must have admin right to the remote machine.<br>
<br>

 
Just to emphasize what SRG said....<br>
When running BAT/CMD files through the scheduler, the NT Scheduler service should be started with an ID that has appropriate rights to run those files. Otherwise, they (in many cases) will not run.<br>
<br>
Also, use the NT Resource Kit's "Command Scheduler" instead of the command line. The GUI interface makes setting things up a LOT easier.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top