Beginner Crontab Question

Beginner Crontab Question

Posted by: ashattuc
Posted on: 2006-12-16 12:17:00

Hello,

I'm trying to get a cron to work, and I'm following the directions from the DH wiki, but it's not running and I'm not getting any e-mail. I uploaded a text file, and ran it using the 'crontab myfile.txt' command, checked it with 'crontab -l', and I'm not getting anything. Here's what I have uploaded:

MAILTO=myemail@mydomain.com
* * * * * /dh/cgi-system/php5.cgi /home/myuser/mydomain.com/test-cron.php

I'm sure it's something simple. Any ideas?

Thanks!
Chris

Re: Beginner Crontab Question

Posted by: anonymous2
Posted on: 2006-12-16 12:48:00

Well, you're telling it to run every minute, which is a lot.

Does your test-cron.php work on its own? Does it actually produce output (just checking)?

Re: Beginner Crontab Question

Posted by: ashattuc
Posted on: 2006-12-16 12:55:00

Thank you for the response. I think I figured it out. I was pointing to the wrong file, and I think I remember from previous experience with a different host that the e-mail address has to be something in the same domain, which would explain why I didn't get any e-mails?

In any case, I got the cron to work. Thank you!

Tags: crontabmailmyemailmydomaincrondhuploadedmyfilemailtocgi systemsomething simplephp5wiki