?
Solved

Shell Script

Posted on 2002-06-13
6
Medium Priority
?
184 Views
Last Modified: 2010-04-21
I need a script that uses the Scheduler mechanism to run a Java file(.class) every 2 hrs.
How do i got abt it.....please help
0
Comment
Question by:rahulkothari
[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
6 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 200 total points
ID: 7076683
crontab -
0 0,2,4,6,8,10,12,14,16,18,20,22 * * * Java file(.class)

 
0
 

Author Comment

by:rahulkothari
ID: 7078205
what does the *** in crontab -
0 0,2,4,6,8,10,12,14,16,18,20,22 * * * Java file(.class)
represent ?
0
 

Expert Comment

by:akhilesh_chadha
ID: 7078755
yaar rahul *** represents futher numbers ,well from which
colleage r u from kindly contact i nedd someone to work in my company
0
Industry Leaders: 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!

 
LVL 21

Expert Comment

by:tfewster
ID: 7078763
(from `man crontab`), the 3rd, 4th & 5th fields are:
monthday       The day of the month, 1-31
month          The month of the year, 1-12
weekday        The day of the week, 0-6, 0=Sunday

* is a wildcard, so ths script will execute every day of the month, every month of the year, every day of the week.

Remember to include the full path to the script, and ensure it sets up all the environment variables it needs, as .profile won't get executed..
0
 

Author Comment

by:rahulkothari
ID: 7079094
akhilesh...gustad20@yahoo.com

thanx guys
0
 
LVL 21

Expert Comment

by:tfewster
ID: 7080938
rahulkothari, please accept ozos comment as an answer to close this question, or post more information if you still need more help...

Thx
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

800 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