anilvvnn
asked on
How to schedule a job on windows-NT
Hi,
How to schedule a job on windows-NT to run a Java program at specific time. Need detailed info.
Thanks,
Anil
How to schedule a job on windows-NT to run a Java program at specific time. Need detailed info.
Thanks,
Anil
ASKER
Nope, its not working when I type
c:\>at java <JAVA_PRG>
its throwing invalid command. Even I tried using
c:\>at 20:35 "java <JAVA_PRG>"
or
c:\>at 20:35 "java.bat"
where I included 'java' command in batch file but doest seem to be working and when I type 'at' to see jobs,
c:\>at
Status ID Day Time Command Line
-------------------------- ---------- ---------- ---------- ---------- ---------- ---
Error 1 Next 4 8:35 PM java.bat
I found Error in status field, how could we find error msg. Can u give me detailed and working response.
Thanks,
Anil
c:\>at java <JAVA_PRG>
its throwing invalid command. Even I tried using
c:\>at 20:35 "java <JAVA_PRG>"
or
c:\>at 20:35 "java.bat"
where I included 'java' command in batch file but doest seem to be working and when I type 'at' to see jobs,
c:\>at
Status ID Day Time Command Line
--------------------------
Error 1 Next 4 8:35 PM java.bat
I found Error in status field, how could we find error msg. Can u give me detailed and working response.
Thanks,
Anil
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This article might help you in working with the at command.
http://www.elementkjournals.com/ewn/9408/ewn40046.htm
cheers!
http://www.elementkjournals.com/ewn/9408/ewn40046.htm
cheers!
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
[points to dnoelpp]
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
sudhakar_koundinya
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.
I will leave a recommendation in the Cleanup topic area that this question is:
[points to dnoelpp]
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
sudhakar_koundinya
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.
C:\> at java <yourJavaProgram>
first check whether it really works if started immediately.
C:\> java <yourJavaProgram>
Type at to show all pending tasks and with at /delete you can delete tasks. at /? shows you all possibilities.