Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to debug why my the support ticket system I am setting up is not pulling the POP email from my Google Apps email.

I set up a cron job for this, per the instructions of the developer of the support ticket system:

php -q /home/username/public_html/support_ticket_sw/pipe/pop.php >/dev/null 2>&1

Then, based on some other thread on this site, I did this...

php -q /home/username/public_html/support_ticket_sw/pipe/pop.php >/dev/null 2>&1 | mail -s "cron output"

...Now I get emails but they are empty. Do I need to put something relevant in stead of "cron output". I assumed that is the email subject line but maybe thre should go the output of the cron job? I don't know what that is...

share|improve this question
up vote 3 down vote accepted

Just remove the ">/dev/null 2>&1", and anything the command outputs will be emailed.

Cron normally emails the output of commands, if the commands output anything, unless you include redirection operators, which is exactly what "2>&1" and ">/dev/null" are.

share|improve this answer
Thanks, that clarified that aspect. I am now getting the error message: Error Occurred: Can't connect to,995: Connection timed out. – Strategerizer Nov 10 '10 at 1:49
And if you want the mails sent to some external address rather than your local mailbox, put at the beginning of the crontab. – Gilles Nov 10 '10 at 1:49
Great, thanks; that is good to know. – Strategerizer Nov 10 '10 at 1:52
Actually Gilles is incorrect - the line should read: – Tony Maro Mar 10 '13 at 18:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.