The UNIX and Linux Forums  

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 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 12:22 AM
help with crontab bob122480 Shell Programming and Scripting 3 01-22-2007 05:49 PM
Crontab gen4ik UNIX for Dummies Questions & Answers 1 01-18-2007 04:26 AM
ftp and crontab user` Shell Programming and Scripting 27 11-13-2006 05:02 PM
Crontab lo-lp-kl UNIX for Dummies Questions & Answers 2 05-05-2005 03:21 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-21-2006
Registered User
 

Join Date: Jun 2006
Posts: 15
Need help in crontab?

Can anyone please help me here i am trying to schedule a job in CRON I want to run it every five minutes.
When i try to save getting following error message
OS is HP UNIX

"/var/tmp/aaaa01326" 1 line, 82 characters
*/5 * * * * /home/oracle/run.sh >> /home/oracle/logs/run.log 2>&1
crontab: error on previous line; unexpected character found in line

Thanks in advance.
Reply With Quote
Forum Sponsor
  #2  
Old 07-21-2006
crabbie_upk's Avatar
Registered User
 

Join Date: Jul 2005
Posts: 18
Cron job

Hi,

You have made syntactical error ("*5"). Just change it as 0-59/5 and let me know if it doesn't works for you.

Thank you,
Uday.
Reply With Quote
  #3  
Old 07-22-2006
Registered User
 

Join Date: Jun 2006
Posts: 15
Thanks for your response but it didn't help still same error

"/var/tmp/aaaa01326" 1 line, 82 characters
0-59/5 * * * * /home/oracle/run.sh >> /home/oracle/logs/run.log 2>&1
crontab: error on previous line; unexpected character found in line
Reply With Quote
  #4  
Old 07-22-2006
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,016
Quote:
Originally Posted by J_ang
Thanks for your response but it didn't help still same error

"/var/tmp/aaaa01326" 1 line, 82 characters
0-59/5 * * * * /home/oracle/run.sh >> /home/oracle/logs/run.log 2>&1
crontab: error on previous line; unexpected character found in line
not all crontabs support this syntax. Try listing ALL the minutes explicitely:
Code:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/oracle/run.sh >> /home/oracle/logs/run.log 2>&1
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0