MAILTO Not Accepted In Crontab


 
Thread Tools Search this Thread
Operating Systems Solaris MAILTO Not Accepted In Crontab
# 1  
Old 08-01-2006
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  
Old 08-01-2006
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  
Old 08-02-2006
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  
Old 08-02-2006
I believe Torch was referring to the line command in your crontab, not the error.
# 5  
Old 08-02-2006
Command

This is the entry i used

# Test to enable mail
MAILTO="oracle"
#
00 12 * * 6 /export/home/......................
# 6  
Old 08-02-2006
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  
Old 08-02-2006
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Cybersecurity

Certificates accepted/rejected depending on what service I use...

Hey everyone. I was at my local star bucks, which has open free wifi. And I (against my better judgement) deceided to check my school email. I was using their wifi network. when I went to go login, I was presented with the safari prompt "Can not Verify Server identity". I clicked 'details' and... (1 Reply)
Discussion started by: Lost in Cyberia
1 Replies

2. Shell Programming and Scripting

Shell script : value under 1 (0,0...) is accepted as 0?

Hi all,, I have this script ctr=$(( 1/1000 )) while do echo $ctr >> test.txt doneHowever, it puts 0 instead of 0.001 How can I put 0.001 in the text file? Thank you (2 Replies)
Discussion started by: peuceul
2 Replies

3. Shell Programming and Scripting

BASH weird acting: unquoted parameter accepted as quoted one !

In one session I have strange behavior of the bash-shell: SDX-Q> echo ">$ss<" #this is just to present the $ss var: > lll kkk < SDX-Q> # more obviose: SDX-Q> od -cb <<<"$ss" 0000000 l l l k k k \n 040 040 040 154 154 154 040... (3 Replies)
Discussion started by: alex_5161
3 Replies

4. Shell Programming and Scripting

SED - Create mailto: link

Help! I am using sed to convert text files into easily viewed html tables. I have managed all except converting the email addresses to mailto: links. Multiple email addresses exist within the files, either preceded by a space or > (as part of HTML tag), and followed by either space or < I've... (5 Replies)
Discussion started by: Nigel_R
5 Replies

5. Fedora

Crontab & MAILTO

Hi there, I'm working with two servers, one with FEDORA 6 and the other one with FEDORA 7, and if I put these lines in crontab: MAILTO=MYADDRESS@mail.com */1 * * * * df -h everything works fine on FEDORA 7 , while it doesn't work on6?!?...and I find this message in the log file: MAIL... (2 Replies)
Discussion started by: Giordano Bruno
2 Replies

6. Shell Programming and Scripting

Quick edit on accepted variable.

I am new newbie to unix. I am taking user input using ksh script. The valid value user can enter is a) Numeric 1 to 500 b) character e, r c) e1 to e100 I figured out how to deal with a) and b) but want to separate characters when user enter e1 to e100 I want to store e in... (1 Reply)
Discussion started by: ekb
1 Replies

7. Solaris

Password accepted but kicked out

The Sun Solaris x86 system seemed to accept my username and password when I do SSH, but then the login prompt went away or hang. What happened? (8 Replies)
Discussion started by: conandor
8 Replies

8. Forum Support Area for Unregistered Users & Account Problems

Password reset not being accepted

Why would a password reset, a provided numerical value thru email, not be accepted when trying to log in with it? I have expired the 5 login attempts twice with still no acceptance. thanks for the help (3 Replies)
Discussion started by: W.A.C.
3 Replies

9. Post Here to Contact Site Administrators and Moderators

Solution accepted

Is there any status like open/close or solution is accepted by the owner? This can make a lot of difference as we need not look for questions that have already been answered.(saves time). (1 Reply)
Discussion started by: sudhamacs
1 Replies

10. Shell Programming and Scripting

MailTo in a script

Im a beginner in shell scripting, but I figured if I wanted the right answer, this is the place to come. I've written a script that basically executes a command and sends the result to a standard output > ???log.log. I just wanted to know if I could put the MailTo command somewhere in the... (2 Replies)
Discussion started by: Itsaboutme
2 Replies
Login or Register to Ask a Question