• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 126
  • Last Modified:

Is it only AT command used for scheduling the task?

I have a java program wanting to be executed from our server (Window 2000) every 1 minute. Is it only AT command used for scheduling the task to be executed on a regular baiss? If yes, please giving me an example how to schedule to run every 1 minute? I have heard about Agent stuff? what does it use for?
0
LeanMoreTryMore
Asked:
LeanMoreTryMore
  • 4
  • 2
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Why not use the Scheduled Tasks Control Panel?
0
 
LeanMoreTryMoreAuthor Commented:
The scheduled tasks control Panel is not available in Window NT/2000
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Are you kidding?  It's available in 2000.  It's not in NT, but it most certainly is in 2000.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LeanMoreTryMoreAuthor Commented:
OK, I will check with our network guy.

but certainly it is not available in NT. in this case, we have to use AT command, isn't it?
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Again, SCHEDULED TASKS IS available in 2000.  It is NOT available in NT4.  You question made no mention of NT4, so why is this a concern?
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
If you type "AT /?" you get the syntax you use with the AT command:

The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use
the AT command.

AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]]
AT [\\computername] time [/INTERACTIVE]
    [ /EVERY:date[,...] | /NEXT:date[,...]] "command"

\\computername     Specifies a remote computer. Commands are scheduled on the
                   local computer if this parameter is omitted.
id                 Is an identification number assigned to a scheduled
                   command.
/delete            Cancels a scheduled command. If id is omitted, all the
                   scheduled commands on the computer are canceled.
/yes               Used with cancel all jobs command when no further
                   confirmation is desired.
time               Specifies the time when command is to run.
/interactive       Allows the job to interact with the desktop of the user
                   who is logged on at the time the job runs.
/every:date[,...]  Runs the command on each specified day(s) of the week or
                   month. If date is omitted, the current day of the month
                   is assumed.
/next:date[,...]   Runs the specified command on the next occurrence of the
                   day (for example, next Thursday).  If date is omitted, the
                   current day of the month is assumed.
"command"          Is the Windows NT command, or batch program to be run.

You might be better off though using a batch file and the sleep command and having the batch file loop.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now