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!

Error while using at command 1

Status
Not open for further replies.

rashmijk

Programmer
Jun 14, 2002
9
US
Hi,
I am issuing a simple schedule for making a backup but it is giving error. How can I diagnose the problem?
The command is
at 9:55 /every:Monday "cmd /c copy O:\LINK\ZQU7\Rash1.pdf O:\LINK\ZQU7\Test23.pdf"

If I just issue the copy command by itself (copy O:\LINK\ZQU7\Rash1.pdf O:\LINK\ZQU7\Test23.pdf
) it works fine. I don't know what goes wrong when it is scheduled.

Thanks
Rashmi
 
Hi,

Its best to save the copy command as a .bat or .cmd file and issue the at command as.

at 9:55 /every:M c:\backup.bat.

Whats the error you are getting when using the at command??
 
Hi ,

Thanks for your reply.

The status of the command says Error but it does not mention anything about the cause or what exactly is the error.

C:\reports\bin>at 11

Task ID: 11
Status: Error
Schedule: Each M
Time of day: 9:55 AM
Interactive: No
Command: "cmd /c copy O:\LINK\ZQU7\Rash1.pdf O:\LINK\ZQU7\Test23.pdf"


I tried using a .bat file aslo for the copy command but in that case the job status says OK but the copy never takes place.

Thanks
Rashmi
 
Ohhh silly me!!!! Still in weekend mode!!! :)

It could be down to permissions!!!!! And the account that the scheduler service is using!!

If you change the account the schedule service is using to the administrator account. That will give full access to the scheduler.

Then save the copy command in a batch file, and schedule the batch file with command I gave in the last post!

This should fix it!!

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top