Discussion Locked

WIN-NT 'at' command

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm tring to use the 'at' command to schedule an automatic backup process.
After the process, displayed in the STATUS is 'error'. I can not find documentation to help find what my 'error' is. The HELP message only shows how to build the 'at' command and does not indicate how to view the results.

thanks.......JOHN

9 replies

by syscokid

Post your AT command so we can see it. Also, you have the Scheduler service running, right?

by jsecking

c:>at 17:11 ftpcopy.cmd
Added a new job with job ID = 1

c:>at
Status ID Day
---------------------------
1 Today

c:>at
Status ID Day
---------------------------
Error 1 Tomorrow

***************************
Here is acopy of command that is to execute.
***************************
c:>type ftpcopy.cmd
ftp -i -n -v -s:ftpscript.txt

..........JOHN

by jgee22

Does it run locally or network? If you run it on the network, you may have to supply an userid and password that has permission to run services on the network.

by me01

need condence of ftpscript.txt you can change the info with xxxxxx for security if needed. does the ftpcopy.cmd run without the at?

by jsecking

The ftpscript command run OK by itself.
I am trying to setup an automated/unattended execution for this script using the 'at' command. The 'at' command will let me schedule as a job but shows 'status = error' at complation with no explanation for the error.

by me01

i have set alot of these up and the only time i get erors is when nothing happends. you are saying the the ftp happeneds but you get the error anyway? are you useing the short dir and file names?
example:c:\program files\direct\file.cmd c:\progra~1\direct\files.cmd
what was typed for at

at 12:00 /every:monday,thursday "c:\progra~1\direct\files.cmd"

_______________

have you tried winat of the resource kit it will give you a gui for the at command it is easier sometimes.
me01

by jsecking

No, I saying that I can run the ftp as a batch job and I get the desired resvlts. Running with the 'at' command no results on the ftp file and an error on the status line of 'at'.
SEE early relply for screen copy of command entered.
------------------
I tried the WINAT and I do not get results and no error is displayed. The scheduled job just goes away.......

by cbonnet

I had to mess with AT once, and through trial and error got it working. I don't remember all of the details exactly, but I do still have the command I used to get it to work. I had a lot of trouble getting a simple net time synchronization to work...eventually this is what performed for me.

\\oemfsky is the local machine that I was trying to get the time set on, \\hoemxin was the machine we had connected to a master time clock (through the serial port). Good luck,

at \\oemfsky 5:10 /interactive /every:m,t,w,th,f,s,su "c:\xintime.bat"

c:\xintime.bat=
net time \\hoemxin /set /yes

by me01

the server is running this local he being the server needs a full path to the command sometime. so it disappeared when you did it through winat. the winat will not let you do once for the same day as you are doing it so i have found at clich in that part of the gui. i know you have the file in a place that is in the path but just hummor me please.

This discussion is closed to new replies.