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 07: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 07-21-2006
J_ang J_ang is offline
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.
  #2 (permalink)  
Old 07-22-2006
crabbie_upk's Avatar
crabbie_upk crabbie_upk is offline
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.
  #3 (permalink)  
Old 07-22-2006
J_ang J_ang is offline
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
  #4 (permalink)  
Old 07-22-2006
vgersh99's Avatar
vgersh99 vgersh99 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,122
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
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 07:51 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