Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Shell Script

Posted on 2002-06-13
6
Medium Priority
?
186 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

596 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