Server :: Causing Crontab To Not Email Blank Emails

Aug 3, 2011

I've currently got a crontab line that looks like the following:

Code:
*/5 * * * * /usr/bin/php -q /etc/backend/cron.php | mail -s "Cron script output" whiteydude@gmail.com

The script works fine - it runs every 5 minutes and checks if certain environmental variables are set in place - if they are, it prints an output. If they're not, it dies.

The problem is that when it dies, it still sends me a blank email - one every 5 minutes, every time the cron job runs.

telling it not to send if it's blank?

I'm assuming some type of dirty awk script could do this, but I don't really know my shell well enough to do that.

I'm not good at putting these things into words, so let me write some psuedo code to explain what I mean:

Code:
*/5 * * * * /usr/bin/php -q /etc/backend/cron.php | if (STDOUT != '') { mail -s "Cron script output" whiteydude@gmail.com }

EDIT: Unfortunately I'm running on CentOS, so I can't use mail -E . Apparently that's a FreeBSD thing.

View 5 Replies


ADVERTISEMENT

Server :: Configure Postfix To Send Emails From One Email

Feb 8, 2011

I'm experimenting with with mail-servers now and I'm trying to configure postfix to send emails from one email(pop3 is gmail) to any email outside the local network. Server is Ubuntu 10.10 with the last updates.

View 1 Replies View Related

CentOS 5 Server :: Crontab Creating Blank Files In Root Directory?

Jul 10, 2009

I've just discovered that crontab is creating a new file in the root directory every time it executes a cronjob, and it doesn't erase over the old file so there are thousands of files in the root directory, they have the same name as the script file (appended with a numeral) but are all blank.here is what one of the cronjob's looks like[URL]

View 10 Replies View Related

Ubuntu :: Crontab Emails Bounce Others Don't But Are Not Delivered?

Aug 22, 2010

Does anyone know what might be causing the following situation?

Crontab emails are bouncing with the message "Message rejected as spam by Content Filtering." (I've contacted the mail server admin about this.)

But emails sent with the command "mail user@example.com" etc. are "stat=Sent ... Queued mail for delivery" (according to the log), but never arrive and never bounce. I've tried sending as root and as other users.

View 3 Replies View Related

Server :: Gmail Afte Adding Domain And Email Accounts Explorer Next Window Blank

Jun 11, 2009

I install qmail server from source according to document on qmailrocks.org but when i add domain and email account and after press the button create the next window in explorer is blank.

View 1 Replies View Related

General :: Setup Do Not Run In The Blank Crontab

Aug 13, 2010

I used to get the below when I ran crontab, but now its disappeared and my tasks I set up do not run in the blank crontab

#lxpr weekly cron job - Kickstart generated entry
0 1 * * 0 /opt/lxpr/lxpr -st /var/lxpr
#lxpr monthly job to clear down old dumps - Kickstart generated entry
0 1 28 * * find /var/lxpr -name "lxpr.`uname -n`*" -type d -a -mtime +30 -exec /bin/rm -r {} ;

View 5 Replies View Related

General :: How To Send Self An Email Reminder Using Crontab?

Mar 3, 2010

I'm trying to learn how to send my self an email reminder using crontab, this is what I tried but I'm not getting the email.# m h dom mon dow command 33 13 * * 3 mail -s "This is a test" joedwalker.email@gmail.com < /home/joe/email.

View 3 Replies View Related

Ubuntu :: Email Software That Will Let Me Read Emails On PC

Jan 10, 2010

Can any one recommend an email software that will let me read my emails on the pc without removing them from there original location in case i want to read them on another pc/work, also i need to be able to bounce spam like you can do in mail on the Mac.

View 1 Replies View Related

General :: Sending Emails To Outside Email Addresses?

Sep 14, 2010

I have sendmail setup and it works fine sending emails to outside email addresses. When I try and send email to our internal groupwise server the mail never gets there and I get an error message in the log user unknown.

View 1 Replies View Related

Ubuntu Servers :: Make A Crontab To Email Log Files?

Jul 28, 2010

I would like to make a crontab task to email a log file to me every night.

How would i do this? I know how to make crontab jobs (and sett the time on them), i just dont know the command i would write for this particular job.

View 1 Replies View Related

Ubuntu Networking :: Emails Saved On Hdd In 9.04 Evolution 2.26.1 Email App?

Feb 17, 2010

emails saved where on hdd in ubuntu 9.04 Evolution 2.26.1 email app ? how I make backup prior upgrade whole 9.04 ubuntu? is recommended, isn't it?

View 3 Replies View Related

Ubuntu :: Evolution - Import Emails Into Another Email Program?

Aug 6, 2010

Normally I just use the backup feature in evolution but how would I go about saving my emails if I wanted to import them into another email program?I am going to install Mint 9 KDE on a separate partition and I have found evolution does not play nicely in KDE so was hoping there was a way of importing my evolution mail into Mints KDE email program.

View 3 Replies View Related

General :: Crontab To Email When Buffers/cache Memory Reached A Defined Value

Jun 18, 2010

I have a Linux server running CentOS with 2GB RAM. I am searching in google and also in this forum but could not find any luck yet. I am searching the way that we can receive notification by system to a specified email when the memory reached a specified value we defined.

Is there any tool or sort of shell script we set via crontab every minute to check that?

View 2 Replies View Related

Ubuntu Servers :: Get Email Address Pushing Emails Out To Phone?

Mar 26, 2010

I have a domain hosted with some remote host where I pay $10 a month and they provide me with, among other things, a bunch of email addresses. One of these addresses is my default address I use for everything and is blackberry@mydomain.com. I no longer have a Blackberry, I switched over to a HTC Hero with Google Android so I'm wondering how I could get that email address pushing emails out to my phone. Android supports Exchange but the licenses are too expensive for me. Is there an Ubuntu alternative to make this work somehow?

View 2 Replies View Related

General :: Crontab Not Working \ Edited Crontab File Using Crontab -e?

Apr 27, 2010

I am using Linux 64 bit Redhat Linux. I am trying to setup simple crontab as follow...1. Edited crontab file using crontab -e2. Listed the file once to verify it using crontab -l. This will display as.. 18 5 * * 2-3 ksh $HOME/testScript.sh > $HOME/testscript.out3. Logged in a root and restarted cron deamon using "/etc/init.d/crond restart"As per my understanding now my testScript should start running at 5:18 am Thuesday

View 3 Replies View Related

Ubuntu Servers :: Setup An Email Client In Order To Send/receive Emails?

Oct 2, 2010

I want to setup an email client in order to send/receive emails, but since i am experiencing some issues with my ISP, i decided to setup an SMTP server with Postfix on my machine.The problem is that i can receive emails but i can not send.I read almost every thread in here refering to Postfix, but i could not find the problem on my configuration.So here it is..

Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first

[code]....

View 6 Replies View Related

Server :: Email Notification - Heartbeat To Send Email When The Slave Server Becomes The Master?

May 3, 2010

Have someone used Linux heartbeat to send email when the Slave server becomes the Master? I've read I can configure the MailTo under.

But I really don't know how to do it. I basically need my primary server to send an email when it becomes inactive and all the activities are manage by the secondary node.

View 7 Replies View Related

OpenSUSE Network :: Postfix Won't Discard Blank Email From Yahoo

Jun 9, 2011

I am running in a problem that i have put a postfix regex which needs to discard emails having no subjects, while it works fine for gmail,hotmail and other domains but it does not work for [URL] ultimate reason behind this is because yahoo does not send subject line if subject is not included in email.

View 3 Replies View Related

OpenSUSE :: Sending Email Using PHP / Start An Email Server In Order To Get Application To Work?

Feb 23, 2010

I'm attempting to send email with a PHP application I got from a textbook. Do I need to start an email server in order to get the application to work?Using SuSE 11.2

View 5 Replies View Related

Server :: Allow Unsubscribed Email Address To Send Email To Mailman List?

Jul 1, 2010

is there a way to allow unsubscribed email address to send emails to mailman list without having to manually set a filter for that email address?

View 1 Replies View Related

Software :: Apache Virtual Host Send Email Without Email Server?

Jun 3, 2009

Debian 5, apache 2.2 I've got Apache up and hosting multiple sites. Each site will have a php contact me page that will simply dump an email to a fixed address. What program should i be using to accomplish this? I've used nullmailer before but that assumes you have a fixed smarthost somewhere which I don't.

View 6 Replies View Related

Server :: Block Email From Certain Group To A Specific Email Address?

Apr 29, 2010

Is there a way of allowing only certain domain to send e-mails to certain specific e-mail address. I am using Sendmail, and I have an alias which translate to certain members of staff within my organization. I don't expect e-mails from outside our domain to be sent to this alias e-mail address.

View 1 Replies View Related

Server :: Routing Inbound Email To Multiple Email Servers?

Dec 21, 2009

I have recently setup a new mail server and have simulated sending and receiving on the new email server. The new email server will replace the primary one.I would like to setup the new email server in parallel with the existing one.This way i can observe issues that might occur and be aware of what could go wrong. I want to received mail to be delivered to both mail servers at the same time.I would like to use postfix, exim i find a bit to difficult to understand.I have thought of using transport maps, the only problem is that you can only forward mail to one server at a time using transport maps.I think recipient_bcc_maps and sender_bcc_maps could work, i would just like ideas of how i can do this.

View 5 Replies View Related

Server :: Dropping All Email For Specific Email Address?

Jun 12, 2011

I have a user who was getting constantly spammed so I deleted their email account but it's still coming in and trying to get delivered, how do drop all email for a specific email address?

View 4 Replies View Related

General :: Possible Disabling Crontab Job Without Deleting Crontab Description Entry

Jun 23, 2011

is it possible disabling a crontab job without deleting the crontab description entry (by crontab -e)?I could also accept to change the entry itself. Now it's:0 0 * * 0-6 /home/me/cron/script.csh

View 4 Replies View Related

Server :: Apache Causing A HUGE Load?

Feb 10, 2010

my server and it had a load of 60 so i immediately took down apache and the load went back down to 0 in a few mins and every time i put it back on the cpu usage on both cores immediately goes to 100% and the load goes up to 20 in just 60 seconds until i take apache down again?

View 6 Replies View Related

Ubuntu Servers :: Buying Domain / Hosting Web Server / All Domain Registers Come With Email Or Just Email Forwarding?

Mar 29, 2010

I am thinking about buying a domain name and hosting my web server.

I have seen pricing from $8 to $30 a year. Any favorites from fellow ubunters? Also this whole "whois" thing scares me, if I am correct my information I enter when buying the domain is enter into some big pool of information. People can find this information out and dig up important information. url Can I prevent this with private Whois or how do I set it up? This website examples some of my fears with this whole WhoIs thing, url whois/Private-Whois.html Does most/all domain registers come with email or just email forwarding or both? How does that work? At this moment, my only question about Web Hosting is how do I get Website Statistics as in: Stats, web analytics, web traffic stats and more? I will be web hosting through Ubuntu 9.10 gnome.

View 9 Replies View Related

Ubuntu :: MUTT - Which Key To Refresh The Emails - Emails Are Got By IMAP ?

May 29, 2010

How to refresh and reload the list of email into MUTT ? Which key?

Additional: how to go to folder SENT of gmail ? and configureation eventually?

View 1 Replies View Related

OpenSUSE Network :: Lamp Server To Send Automated Emails Using Cable Providers SMTP Server?

Jun 19, 2010

Somewhere out there there has to be someone that can help me set up my lamp server to send automated emails using my cable providers SMTP server

View 2 Replies View Related

Server :: CentOS Mail Server: One Account Cannot Receive Their Emails

Oct 14, 2010

Could it be the IMAP file is corrupt?I have set up mail server on Centos to receive via dovecot.One of my user accounts (A single account out of a hundred)cannot receive their mails.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved