PDA

View Full Version : cron Daemon - getting emails everytime it runs



Nielubie
11-13-2008, 04:06 PM
I get the message below every time my cron job runs. All it does is add 1 gold to a specific user, I'm running this test and all is good except that I get these emails. If I set it up to run every min, I get 60 emails an hour, obviously something is not right here. Any ideas why I'm getting this? Is there another way to run this cron job other then the wget?



Here is the cron job.

/usr/bin/wget http://ikariam.nbgamers.com/addgold.php

Here is the email.

--16:00:02-- http://ikariam.nbgamers.com/addgold.php
=> `addgold.php.178'
Resolving ikariam.nbgamers.com... 74.220.223.81 Connecting to ikariam.nbgamers.com|74.220.223.81|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

0K 87.60 B/s

16:00:18 (87.60 B/s) - `addgold.php.178' saved [18]

r2b2
11-13-2008, 04:24 PM
try using

/usr/bin/wget http://ikariam.nbgamers.com/addgold.php > /dev/null

Nielubie
11-13-2008, 05:00 PM
try using

/usr/bin/wget http://ikariam.nbgamers.com/addgold.php > /dev/null

Nope, that didn't work, I still get this message. Only the number increments everytime the script is run after the addgold.php.###

--16:59:01-- http://ikariam.nbgamers.com/addgold.php
=> `addgold.php.186'
Resolving ikariam.nbgamers.com... 74.220.223.81 Connecting to ikariam.nbgamers.com|74.220.223.81|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

0K 3.66 MB/s

16:59:01 (3.66 MB/s) - `addgold.php.186' saved [18]

shadmego
11-13-2008, 09:07 PM
Try this one:



/usr/bin/wget http://ikariam.nbgamers.com/addgold.php > /dev/null 2>&1


This should make the cron run without a peep.

~regards

Nielubie
11-13-2008, 11:40 PM
Try this one:



/usr/bin/wget http://ikariam.nbgamers.com/addgold.php > /dev/null 2>&1


This should make the cron run without a peep.

~regards

I found this same code on a google search and it didn't work for me, I think I forgot to add the ">" and maybe that is why i was getting errors. Go figure, not paying attention to details.

Thank you very much, seems to be working good so far, no messages. :)