LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-02-2006, 10:10 AM   #1
woodier
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
Crontabs duplicate email


The following script executes properly from the command line, but sends out two emails 1 second apart when ran from /var/spool/cron/crontabs/ as root.

7 3 * * * /usr/bin/php -q /home/www/html/bday/daily.php >/dev/null 2&>1

My distribution is debian 3.1 and postfix 2 with smtp,tls,amavis,clamav,spamassassin,courier-maildrop.

Thanks in advance for any assistance.
 
Old 12-03-2006, 09:36 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Does the script or php page itself have an email function in it?
 
Old 12-04-2006, 10:21 AM   #3
woodier
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Question Crontabs duplicate

The php page has an email function. If I remove the carbon copy (Cc) from the headers, I don't have a problem with the script running via cron.
 
Old 12-04-2006, 10:46 AM   #4
woodier
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Crontabs duplicate email

This is a correction to my last reply. I still have the problem of duplicate emails, after removing a carbon copy (Cc) from the headers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 can I let non-root users build crontabs? dthacker Suse/Novell 2 06-02-2006 03:22 PM
nothing in /usr/spool/cron/crontabs Furlinastis Slackware 5 06-04-2005 10:16 PM
Crontabs kd5giv Slackware 8 05-08-2004 04:37 AM
where can I find the source of the program crontabs prad Linux - General 3 02-12-2003 07:04 AM
Duplicate email notifications fatgod LQ Suggestions & Feedback 6 05-28-2002 02:33 AM


All times are GMT -5. The time now is 04:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration