GeekInterview.com
Series: Subject: Topic:
Question: 10 of 25

How to do the scheduled task/jobs in Unix platform

Asked by: Interview Candidate | Asked on: Mar 15th, 2005
Showing Answers 1 - 4 of 4 Answers
raja

Answered On : Mar 15th, 2005

cron job feature in unix.

  
Login to rate this answer.
Chiranjeevi Manne

Answered On : Mar 30th, 2007

The two available options are
1. CRONTAB
2. AT (One time scheduling)

Yes  1 User has rated as useful.
  
Login to rate this answer.
matabrez

Answered On : Jan 15th, 2011

View all answers by matabrez

Using crontab we can schedule task/jobs to run at particular time, date, day
basis.

steps.


1. Login to unix

2. At $prompt 'crontab -l' use this command to check what jobs are already
scheduled.

3. To edit or configure a job use " crontab -e" it will open crontab file which
is same like editing file in vi editor. Now schedule the jobs as per your
requirement.


It look like this

0 2 * * *


The above file will be executed daily at 2 am


1 2 3 4 5 = specific time tags

- where -

1 = Minute (of hour) to activate [0-59]

2 = Hour (of day) to activate [0-23]

3 = Day (of month) to activate [1-31 ... 29,30,31 may not activate during all
months]

4 = Month (of year) to activate [1-12 or 3-letter names "Jan,Feb,Mar"]

5 = Weekday to activate [0-7 or 3-letter names "Mon,Tue,Wed"]


  
Login to rate this answer.
Nandu

Answered On : Aug 11th, 2011

By using the command

crontab

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.