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
crontab couldn't run through, help duke0001 UNIX for Advanced & Expert Users 10 02-06-2008 03:22 AM
help with crontab bob122480 Shell Programming and Scripting 3 01-22-2007 08:49 PM
Crontab gen4ik UNIX for Dummies Questions & Answers 1 01-18-2007 07:26 AM
ftp and crontab user` Shell Programming and Scripting 27 11-13-2006 08:02 PM
Crontab lo-lp-kl UNIX for Dummies Questions & Answers 2 05-05-2005 06:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-28-2007
kumarsaravana_s kumarsaravana_s is offline
Registered User
  
 

Join Date: Feb 2007
Location: Bangalore
Posts: 105
Help with a crontab job!!!

Hi,

i need to schedule a script to run at 6.10AM everyday.I tried to do this way.

#!bin/ksh

10 06 * * 0-6

sh /tmp/ss/script/daily_file_check.sh

And at the command prompt I did

>crontab –e cron.txt

I’m not sure whether this is the right way.

Can anyone please tell me how to do this step by step?

thanks a lot,
kumar
  #2 (permalink)  
Old 03-28-2007
Raghuram.P Raghuram.P is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 44
Hi,
You have mentioned it right,but one change...
As you have mentioned everyday then it should be
10 6 * * * <scriptname>

Thanks
Raghuram
  #3 (permalink)  
Old 03-28-2007
kumarsaravana_s kumarsaravana_s is offline
Registered User
  
 

Join Date: Feb 2007
Location: Bangalore
Posts: 105
Quote:
Originally Posted by Raghuram.P
Hi,
You have mentioned it right,but one change...
As you have mentioned everyday then it should be
10 6 * * * <scriptname>

Thanks
Raghuram
I dont know it seems to not work at all...

Can you tell me another way to work around it?.I want this script /tmp/sa/daily_file_check.sh to be executed everyday at 6.10AM
  #4 (permalink)  
Old 03-28-2007
Raghuram.P Raghuram.P is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 44
Hi,
I find one problem in your cron.txt
you have used sh <scriptname>

instead of that use
6 10 * * * /tmp/ss/script/daily_file_check.sh

Thanks
Raghuram
  #5 (permalink)  
Old 03-28-2007
bigearsbilly bigearsbilly is offline
Registered User
  
 

Join Date: Feb 2006
Location: Southern England
Posts: 102
remember, cron jobs have a much reduced
environment. (esp. $PATH)
no .profile or anything like that.

So you may need to explicitly set them.
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 01:25 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