Solved

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

Posted on 2004-08-05
10
300 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

707 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

15 Experts available now in Live!

Get 1:1 Help Now