[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] need help with cron
- Subject: Re: [cobalt-developers] need help with cron
- From: Mike Wes <m_wes@xxxxxxxxx>
- Date: Fri Dec 13 04:04:01 2002
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
At home I am using a similar sort batch job construction
that look like below:
0 * * *
/home/sites/siteXXX/web/phpAds/maintenance/maintenance.php
>/dev/null
I skipped "/usr/bin/php" from crontab and added this to the
first line in file maintenance.php
I am not sure that I included a #! before the
"/usr/bin/php". I will check this tonight or tomorrow (My
company blocks the SSH port number).
Independend from this problem you must check or the execute
permissions are set correctly :-).
Other issue(s) to think about:
* In case of using such crontab job, the while directories
must be specified in the crontab entry and probably in the
files you are calling.
* I found out that it is not possble to create jpg/png
images using this sort of batch processing process. In that
cases I included a web-link, so the image where created by
Apache. It seems that the GD-library is build in as a
Apache module or something like that. It seems it is
possible to change this, but at this moment I am not such a
fan of changing a perfect working development system.
* In case a file is not found in crontab, the a mail is
send to the user/administrator of that site/server. Can you
find something about it?
Regards,
Mike
--- njd 76 <njd76@xxxxxxxxxxx> wrote: >
> This might work but how do i know if it is working? is it
> logged anywhere?
>
>
> >From: Michael Stauber <devel@xxxxxxxxxxxxxx>
> >Reply-To: cobalt-developers@xxxxxxxxxxxxxxx
> >To: cobalt-developers@xxxxxxxxxxxxxxx
> >Subject: Re: [cobalt-developers] need help with cron
> >Date: Fri, 13 Dec 2002 03:29:42 +0100
> >
> > > 0 * * * * wget -q -O -
> > >
> http://www.domain.com/phpAds/maintenance/maintenance.php
> > >
> > > but it is not running. Any ideals? I need a solution
> i am lost.
> >
> >If you can execute PHP scripts from the command line,
> then try the
> >following
> >instead:
> >
> >0 * * * * /usr/bin/php
>
>/home/sites/siteXXX/web/phpAds/maintenance/maintenance.php
> >/dev/null
> >
> >Wget is the wrong tool for this anyway and if at all,
> then you should use
> >Lynx
> >instead. I think the following syntax once worked for
> me:
> >
> >0 * * * * /usr/bin/lynx -dump
> >http://www.domain.com/phpAds/maintenance/maintenance.php
> >/dev/null
> >
> >--
> >
> >With best regards,
> >
> >Michael Stauber
> >
> >_______________________________________________
> >cobalt-developers mailing list
> >cobalt-developers@xxxxxxxxxxxxxxx
>
>http://list.cobalt.com/mailman/listinfo/cobalt-developers
>
>
>
_________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN
> 8.
> http://join.msn.com/?page=features/junkmail
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com