Re: crontab, PHP and MACOSX
| From: | Yvan | Date: | Thu, 29 Mar 2007 00:02:00 +0000 |
| Subject: | Re: crontab, PHP and MACOSX | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251586@lists.php.net to get a copy of this message | ||
On March 28, 2007, replies-lists-a1z2-php@listmail.innovate.net wrote:
> this question really has nothing to do with php ... that said.
>
> on standard unix systems, user-level crontabs (which is what you're
> writing with the crontab -e command) are found in
> /var/spool/cron/<user>. there's also generally a cron log in /var/log/.
> you should check the cron log file to confirm that the cron is running.
> if there isn't a cron log file you might want to look in
> /etc/syslog.conf to see where it says cron messages are being put.
>
> if a cron runs a job but the job fails for some reason, mail is sent to
> the user under which the cron is being run. anything output to stdout
> is also sent to that user. i.e., check the mail of the user under which
> you're running this cron. [this assumes that your system is configured
> to handle local mail.]
>
> [the above are for standard unix systems, i've never actually touched
> macOSX.]
>
>
> - Rick
>
>
Shell command as cron jobs work and errors are also send to the local mail, but php scripts are not
executed, is their any permission issues ?
the same con job work fine on a centos box.
Thank anyway for the hints
yvan
> ------------ Original Message ------------
> > Date: Wednesday, March 28, 2007 03:55:09 PM -0700
> > From: Yvan <yvan.strahm@gmail.com>
> > To: php-general@lists.php.net
> > Cc:
> > Subject: [PHP] crontab, PHP and MACOSX
> >
> > Hello all,
> >
> > I don't know if it's the correct list, but as a php script is
> > involved....
> >
> > I try to start a set up a crontab job with crontab -e, which should
> > start a php script:
> >
> > */10 * * * * cd /Users/yvan/Sites/est-pac/ ; /usr/bin/php
> > /Users/yvan/Sites/est-pac/controller.php
> >
> > but nothing happens, and in the /etc/crontab or in
> > /private/etc/crontab the job is not listed. As I am using Mac OS
> > 10.4.9, should I use launchd? or does someone use crontab with a mac?
> > I try a GUI application called CronniX to setup the job but without
> > success. Any hints?
> >
> > Thanks in advance for your time and help.
> >
> > cheers
> > yvan
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> ---------- End Original Message ----------
>
>