job generating error mails


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting job generating error mails
# 1  
Old 09-28-2008
job generating error mails

Hi

Is there any way we can findout which job/process in unix environment is generating error mails. I am continuously getting it with no subject..

I know the hostname.
And the error in mail - SQL server timed out.

There are hundreds of jobs runing there. How can we find the culprit one?

Thanks in advance!!
# 2  
Old 09-28-2008
You can enable logging by the mail agent. For example, sendmail -Xv <filename>
makes <filename> the logfile. It also creates a huge logfile fast, so do not leave whatever mail agent you have dumping to a logfile for too long.
# 3  
Old 09-28-2008
Hi Jim,
I didn't get you. How can i enable logging by the mail agent?
Thanks
# 4  
Old 09-28-2008
I have no idea what you use to send email on the host that sends problem emails.
I showed how to get sendmail to log everything.

Enable email logging by the agent on that host, if you can. Search the log to see if you can identify the process sending email.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Cron job scheduled is running once, but reports are generating twice

Team, Hope you all are doing fine I have one admin server which is being used dedicately to run cron jobs on hourly basis, fetching the details from Database which is in a different server.These cronjob are run on every hourly/5 minutes basis depending as per end user requirement.The script... (12 Replies)
Discussion started by: whizkidash
12 Replies

2. Solaris

Error generating ssh-keygen

I'm trying to generate this key but getting an error "file not found" Here is the command: # ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (//.ssh/id_dsa): /export/home/bartadm/.ssh/id_dsa Enter passphrase (empty for no passphrase): Enter... (2 Replies)
Discussion started by: Kjons76
2 Replies

3. Shell Programming and Scripting

cron job error

HI am having a script file which is ok if i run from the server manually like <root@hostname:/space/canvas/home/lbs/current/internalcdrbackup/LES_CDR_Configuration/0/MSISDNcdrCount > /space/canvas/home/lbs/current/internalcdrbackup/LES_CDR_Configuration/0/MSISDNcdrCount.txt the... (2 Replies)
Discussion started by: aemunathan
2 Replies

4. Shell Programming and Scripting

Error in cron job;

Hi All, please help me out with this problem. While running my mail_out_original.ksh in CRT window, it disconnects from the server saying not connected Here is my code : (please see the attachment) ____________________________________________________________ #!/bin/ksh ## Load... (1 Reply)
Discussion started by: shruthinagaraj
1 Replies

5. Shell Programming and Scripting

why is this code generating syntax error?pls help

#!/bin/sh copy() { source=`stat -c %s $1` dest=0 cd $2 while ;do cp $1 $2 & pct=`((100 * $dest) / $source )` dest=`dest+1` echo -en ".$pct%\b\b\b" sleep 1 done } echo "starting now" copy /file1 /tmp (3 Replies)
Discussion started by: wrapster
3 Replies

6. Shell Programming and Scripting

error while sending mails through MKS

#!/bin/ksh email0="dummy@company.com" emails() { # mail Generation echo "Hi" | /mapimail -s "-(Test Mail)From Production- `date`" $email0; } emails i receive the following error IDispatch::new MSMAPI.MAPISession failed: 800401f3 at... (0 Replies)
Discussion started by: Vrgurav
0 Replies

7. Shell Programming and Scripting

too many quotes in command, generating error

I am trying to go through a file with hostnames and access those hosts remotely an excute the following to get the uid of user on each of the boxes.. but i have so many quotes.. its not working.. I fudged with the \ before certain quotes, but that was unsuccessful too... What am I missing? ... (4 Replies)
Discussion started by: julesdiane
4 Replies

8. UNIX for Dummies Questions & Answers

how can i recd error log on my sent mails?

I am using the following command to send mail which comprises of a message body (mail_msgbody.txt), Subject(rtf attachment) and a RTF attachment. uuencode ${FILE_NAME} ${FILE_NAME} >> mail_msgbody.txt mailx -s"rtf attachement" aaa@yahoo.com < mail_msgbody.txt When I send mail ...how can I... (0 Replies)
Discussion started by: Amruta Pitkar
0 Replies

9. HP-UX

Job Error

When i run a script in a HP-UX server, it returns the job error 255. Can anyone knows what it means? TIA (1 Reply)
Discussion started by: Viegas
1 Replies

10. UNIX for Advanced & Expert Users

Job Error

While running a script in an UNIX based system i came across with a job error 255.....does anyone knows what it means? TIA (5 Replies)
Discussion started by: Viegas
5 Replies
Login or Register to Ask a Question