?
Solved

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

Posted on 2004-08-05
10
Medium Priority
?
306 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 2000 total points
ID: 11730727
0
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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 …
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…
Suggested Courses

771 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