LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2011, 09:05 AM   #1
lhp2
LQ Newbie
 
Registered: Apr 2011
Distribution: Fedora 14 currently
Posts: 2

Rep: Reputation: 0
Question Phantom email arrives every day, need help to get rid of it


I had a simple cron shell script running under Fedora 14. It runs under a user account. The shell script invoked a PHP script to do some simple batch database updates. If a step failed, the PHP script used the mail command to email me of the failure.

The problem is that an email from this job is arriving every day at 4:30 am. I deleted the job from the cron. I even renamed the shell script to make sure! The email is an old one and is stuck somewhere and I don't know where. I restarted the sendmail service and that did not clear it. I don't even know why it happens at 4:30am! At one time the cron ran it at 4:30 but now its not even in cron! And as I said, I renamed the shell script to make sure.
 
Old 04-13-2011, 04:32 PM   #2
gunhed
LQ Newbie
 
Registered: Jan 2007
Location: Fayetteville, AR
Distribution: CentOS 6.2
Posts: 19

Rep: Reputation: 3
Based on the time that the mystery email appears, you might look for cron jobs in /etc/cron.daily (not all Linux distros have this).

Scripts there will typically run around that time of day by default. There will be an entry in the /etc/crontab file that determines when those daily jobs run - look for a line that contains "run-parts /etc/cron.daily".
 
Old 04-14-2011, 09:17 AM   #3
lhp2
LQ Newbie
 
Registered: Apr 2011
Distribution: Fedora 14 currently
Posts: 2

Original Poster
Rep: Reputation: 0
there are no crons under root

problem solved. email was comming from old server. Had migrated from old server to new server and cron was still active on old server.

Last edited by lhp2; 04-14-2011 at 09:56 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to play a sound with gmail notification when email arrives ? frenchn00b Linux - General 6 06-21-2010 12:09 AM
Console way to play a sound when gmail email arrives? (no pop) frenchn00b Linux - General 2 08-29-2007 07:43 AM
Email never arrives via my php script juancha Linux - Newbie 2 02-22-2006 05:37 AM
LXer: Linux & Open Source Header D-Day Arrives for SCO LXer Syndicated Linux News 0 12-27-2005 08:46 PM
LXer: D-Day Arrives for SCO LXer Syndicated Linux News 0 12-23-2005 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration