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
unexpected error helpme2008 UNIX for Dummies Questions & Answers 2 05-04-2008 02:08 PM
awk Shell Script error : "Syntax Error : `Split' unexpected Herry UNIX for Dummies Questions & Answers 2 03-17-2008 11:16 AM
Unexpected eof error thana Shell Programming and Scripting 6 01-11-2008 01:16 AM
tar: write error: unexpected EOF jabe UNIX for Dummies Questions & Answers 4 12-05-2007 07:40 PM
sort unexpected error? radhika Shell Programming and Scripting 2 07-25-2005 12:12 PM

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 11-21-2006
dhanamurthy dhanamurthy is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 105
unexpected crontab error

Yesterday i installed a new cron on solaris box. After a few minutes after loading the cron, i got the following error.

Your "crontab" on machine_name

!

unexpected end of line
This entry has been ignored.


Do any of you have any idea about this error ?
  #2 (permalink)  
Old 11-21-2006
grial's Avatar
grial grial is offline Forum Advisor  
El UNIX es como un toro
  
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Quote:
Do any of you have any idea about this error ?
No unless you post that crontab line
  #3 (permalink)  
Old 11-21-2006
dhanamurthy dhanamurthy is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 105
Here is the crontab line

00,05,10,15,20,25,30,35,40,45,50,55 * * * 1-6 /export/home/logname/CRON/script.ksh > /dev/null 2>&1
  #4 (permalink)  
Old 11-21-2006
grial's Avatar
grial grial is offline Forum Advisor  
El UNIX es como un toro
  
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
mmmm... Seems to be OK...
Check if there's any kind of "strange" (non printable or wildcard or whatever) char inside the crontab file...
  #5 (permalink)  
Old 11-22-2006
dhanamurthy dhanamurthy is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 105
Can you tell me how to check for non printable character in the crontab file. But all the crons are working fine. That is the mystery in it.
  #6 (permalink)  
Old 11-22-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,944
Redirect your cron file to another file and check for any control characters as said earlier !!!
  #7 (permalink)  
Old 10-03-2008
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,163
In Solaris you get this error from a blank line in crontab.
Post is 2 years old. Author must have removed the blank line by now. A "\n" at the end of the file is mentioned above ....

Ps. Minutes with a leading zero are valid in crontab.
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 03:14 PM.


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