Current time: 04-24-2014, 01:53 AM Hello There, Guest! (LoginRegister)

Post Reply 
Dreamhost and Open Tickets (rant)
03-21-2012, 10:30 AM
Post: #11
RE: Dreamhost and Open Tickets (rant)
(03-21-2012 04:09 AM)bobocat Wrote:  \
Why not post an anonymised copy of your crontab -l output. It could be something as simple as you commented out the MAILTO line...
Here is an anoymised version:

###--- BEGIN DREAMHOST BLOCK
###--- Changes made to this part of the file WILL be destroyed!
# banemall
MAILTO="user@me.com"
15 * * * * /usr/local/bin/setlock -n /tmp/cronlock.3781104649.122621 sh -c $'/usr/bin/perl /home/myuser/whackemall.pl'
# yesterday
MAILTO="user@me.com"
0 1 * * * /usr/local/bin/setlock -n /tmp/cronlock.3781104649.125534 sh -c $'/usr/bin/perl /home/myuser/accesswhack.pl -record'
# today
MAILTO="user@me.com"
@hourly /usr/local/bin/setlock -n /tmp/cronlock.3781104649.125535 sh -c $'/usr/bin/perl /home/myuser/accesswhack.pl -cron'
# daily no output
MAILTO="user@me.com"
@hourly /usr/local/bin/setlock -n /tmp/cronlock.3781104649.125566 sh -c $'/bin/sh /home/myuser/website.com/daily.sh'
###--- You can make changes below the next line and they will be preserved!
###--- END DREAMHOST BLOCK

The top one and the bottom one for this user work, the middle two work but don't send any mail. The non working ones are like other's I have for other users in this account.

I'm sending to my apple icloud email address (me.com), I have tried to use a dreamhost email address, that didn't work either.

-Bill Kelly
See Harden Wordpress for wordpress and dreamhost hardening tips
Find all posts by this user
Quote this message in a reply
03-21-2012, 10:56 AM
Post: #12
RE: Dreamhost and Open Tickets (rant)
(03-21-2012 10:30 AM)kelly7552 Wrote:  The top one and the bottom one for this user work, the middle two work but don't send any mail. The non working ones are like other's I have for other users in this account.

And you are sure that accesswhack.pl will always output something under all conditions? Try:

Code:
$'/usr/bin/perl /home/myuser/accesswhack.pl -record; echo "hi";'

or run the script manually to ensure that it's actually outputting something.
Find all posts by this user
Quote this message in a reply
03-21-2012, 11:00 AM (This post was last modified: 03-21-2012 11:01 AM by kelly7552.)
Post: #13
RE: Dreamhost and Open Tickets (rant)
WooHoo! They just started sending email! I knew they were working because they write to a mysql database which I can see.

:-)

-Bill Kelly
See Harden Wordpress for wordpress and dreamhost hardening tips
Find all posts by this user
Quote this message in a reply
03-21-2012, 04:54 PM
Post: #14
RE: Dreamhost and Open Tickets (rant)
(03-21-2012 11:00 AM)kelly7552 Wrote:  WooHoo! They just started sending email! I knew they were working because they write to a mysql database which I can see.

:-)

Great, so what was the cause.

Just FYI, a cron script can do something without sending output to stdout. I think that if there's no output, no email will be sent.
Find all posts by this user
Quote this message in a reply
03-21-2012, 06:58 PM
Post: #15
RE: Dreamhost and Open Tickets (rant)
(03-21-2012 04:54 PM)bobocat Wrote:  Great, so what was the cause.

Just FYI, a cron script can do something without sending output to stdout. I think that if there's no output, no email will be sent.

There was a bug in the filtering system that was causing my emails to get flagged as spam and deleted. My cron jobs only send email when they want to chat, so that wasn't the problem.

-Bill

-Bill Kelly
See Harden Wordpress for wordpress and dreamhost hardening tips
Find all posts by this user
Quote this message in a reply
03-22-2012, 05:29 AM
Post: #16
RE: Dreamhost and Open Tickets (rant)
(03-21-2012 06:58 PM)kelly7552 Wrote:  There was a bug in the filtering system that was causing my emails to get flagged as spam and deleted. My cron jobs only send email when they want to chat, so that wasn't the problem.

-Bill

Don't make your output so spammy Tongue

Personally, I use mutt to send the output within the script rather than rely on cron... it gives me more control over the subject line, formatting, etc.
Find all posts by this user
Quote this message in a reply
03-22-2012, 07:03 AM
Post: #17
RE: Dreamhost and Open Tickets (rant)
(03-22-2012 05:29 AM)bobocat Wrote:  Don't make your output so spammy Tongue

Personally, I use mutt to send the output within the script rather than rely on cron... it gives me more control over the subject line, formatting, etc.

Thanks I'll check it out.

-Bill

-Bill Kelly
See Harden Wordpress for wordpress and dreamhost hardening tips
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: