Solved

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

Posted on 2004-08-05
10
304 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

730 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