The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
unable to schedule events through cron rakshit HP-UX 7 01-31-2008 04:57 AM
schedule many jobs using cron sireesha15 UNIX for Dummies Questions & Answers 1 11-28-2006 11:20 PM
How to schedule a job ashvik UNIX for Advanced & Expert Users 5 09-22-2005 07:53 AM
Cron to schedule 1st Wednesday of every Month?? bradtri Shell Programming and Scripting 5 10-20-2004 12:12 PM
Very urgent!! Cron problems pappous UNIX for Dummies Questions & Answers 4 02-20-2001 10:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-23-2006
ravi.sadani19 ravi.sadani19 is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 42
How to Schedule job using cron(URGENT)

Hello All,

I m newbie to Job scheduling.

Suppose i have 2 files s1.sh and s2.sh i want to make a schedule such as

run s1.sh at 2AM everyday and run s2.sh 9Pm everyday.

Can anyone tell me how to schdule that using CRON and i want to know what is CRON and CRONTAB.

Thanks in advance
  #2 (permalink)  
Old 01-23-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Check the man pages of cron and crontab. To actually explain how cron works will be complicated.
  #3 (permalink)  
Old 01-23-2006
rocky_74 rocky_74 is offline
Registered User
  
 

Join Date: Jan 2002
Location: dusseldorf,germany
Posts: 10
please check the crobtab menu to add the crontab entry the explation is more or less like this
#1st field: minute (0-59),
#2nd field: hour (0-23),
#3rd field: day of the month (1-31),
#4th field: month of the year (1-12),
#5th field: day of the week (0-6 with 0=Sunday).
#6th field: Script to start

on example

00 17 * * 3 /home/test.sh

This shell script run 17th hour, every day(since there is a * ), every month ( since there is a * ), 3rd day ( which is wednesday )

Check the menu of crontab whether the cron file is there in your system.

rajesh
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0