Solved

How run a scheduled java.class in DOS as ascheduled process?

Posted on 2004-08-05
10
301 Views
Last Modified: 2010-04-17
How can a program be written as a stand-alone java program and run from a command line, such as “java newpgm asbsuid/pwrd mbfuid/psswrd”. Can  such a DOS command line can be automatically scheduled? And How? Is there an automatic schedular for servers? What and how needs to be done?
0
Comment
Question by:coolgem
  • 5
  • 5
10 Comments
 
LVL 22

Expert Comment

by:cookre
ID: 11729688
Presuming you're running NT/2K/XP/3K, that's what Windows Scheduling Servgice is used for.  There's a wizard for it at:

Start / Settings / Control Panel / Scheduled Task / Add Scheduled Task

You can also schedule a task remotely with the AT command.
0
 

Author Comment

by:coolgem
ID: 11729724
What is the AT command
0
 
LVL 22

Accepted Solution

by:
cookre earned 500 total points
ID: 11730727
0
 

Author Comment

by:coolgem
ID: 11731065
The Window Schedular does not work.  It is not a server for java programs.

I will see about the AT command.   Thank you.  coolgem
0
 
LVL 22

Expert Comment

by:cookre
ID: 11731463
The most common thing to do is make a BAT file that runs what you need, then schedule the BAT file.  From the Wizard, you do a Browse to the BAT file.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:coolgem
ID: 11735619
What do I put in the bat file?
0
 
LVL 22

Expert Comment

by:cookre
ID: 11735938
The command to run the java program.
0
 

Author Comment

by:coolgem
ID: 11736127
How does a daemon come into play?
0
 
LVL 22

Expert Comment

by:cookre
ID: 11736927
I guess I'm a bit confused now, not being a Java type.

If entering:
java newpgm asbsuid/pwrd mbfuid/psswrd

from a DOS prompt does what you need, then you can put that command in a BAT file, then schedule that BAT file for regular execution.
0
 

Author Comment

by:coolgem
ID: 11737679
Thank you I think I know what to do now
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now