The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Linux Foundation CTO Markus Rex: Linux 'Now an Accepted Choice' - E-Commerce Times iBot UNIX and Linux RSS News 0 08-02-2007 08:30 AM
MailTo in a script Itsaboutme Shell Programming and Scripting 2 06-21-2006 12:53 PM
crontab sathiyamoorthy UNIX for Dummies Questions & Answers 1 04-21-2006 05:09 AM
SZ in crontab manikumar UNIX for Advanced & Expert Users 1 03-08-2006 10:31 PM
mac 10.4>terminal>linux remote server>ssh login accepted>session closed-why? xprankard UNIX for Dummies Questions & Answers 0 01-21-2006 10:09 AM

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 08-01-2006
raza raza is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 5
MAILTO Not Accepted In Crontab

I have 3 solaris 9 servers
1 allows me to use MAILTO in the crontab, but the other 2 dont.

Error

MAILTO=oracle
crontab: error on previous line; unexpected character found in line.
crontab: errors detected in input, no crontab file generated.

Any Ideas??
  #2 (permalink)  
Old 08-01-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Can you post the entire line? It is difficult for anyone that wants to help you to proceed with just the info that you have given. You can mask out things like ip addresses, email ids and such.
  #3 (permalink)  
Old 08-02-2006
raza raza is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 5
Details

Hi Blow
that is the entire line
the thing is that the servers were producing crontab mail, but for some reason they all stopped producing it.
as soon as i entered MAILTO="oracle" one of them started producing mail
if i use the same line on the other two servers it fails with the error mentioned earlier.
I guess ive got two qstns
1, why did all the systems suddenly stop producing mail
2, why one system will accept the MAILTO line and the others wont
  #4 (permalink)  
Old 08-02-2006
System Shock's Avatar
System Shock System Shock is offline Forum Advisor  
Registered User
  
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 521
I believe Torch was referring to the line command in your crontab, not the error.
  #5 (permalink)  
Old 08-02-2006
raza raza is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 5
Command

This is the entry i used

# Test to enable mail
MAILTO="oracle"
#
00 12 * * 6 /export/home/......................
  #6 (permalink)  
Old 08-02-2006
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,125
Quote:
Originally Posted by raza
This is the entry i used

# Test to enable mail
MAILTO="oracle"
#
00 12 * * 6 /export/home/......................
this is NOT a valid crontab syntax - you cannot do that.
I think you want this:
Code:
00 12 * * 6 export MAILTO='oracle' && /export/home/......................
  #7 (permalink)  
Old 08-02-2006
raza raza is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 5
Why did it stop working??

By default any output from the crontab should be mailed to the owner i.e. oracle
It had been working fine for years, but now decided to fail
maybe i should be looking at why it happend and not try to tackle the symptoms.
The previous suggestion of incorporating the mailto within the command line isnt feasible because i would need to use a seperate mailto for each line
Closed Thread

Bookmarks

Tags
sendmail

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 05:20 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