[PHP] Writing CRON jobs!

2004-01-27 Thread Hamid Hossain
Is there any good reference on how to use CRON (I mean on the net)?

I need to fire some PHP pages at scheduled time daily or weekly, ... so on.

Regards,
Hamid
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Writing CRON jobs!

2004-01-27 Thread Jay Blanchard
[snip]
Is there any good reference on how to use CRON (I mean on the net)?

I need to fire some PHP pages at scheduled time daily or weekly, ... so
on.
[/snip]

http://www.unixgeeks.org/security/newbie/unix/cron-1.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Writing CRON jobs!

2004-01-27 Thread Stuart
Hamid Hossain wrote:
Is there any good reference on how to use CRON (I mean on the net)?

I need to fire some PHP pages at scheduled time daily or weekly, ... so on.
http://www.google.com/search?q=cron+tutorial+php

--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Writing CRON jobs!

2004-01-27 Thread Ray
On Tuesday 27 January 2004 07:13, Stuart wrote:
 Hamid Hossain wrote:
  Is there any good reference on how to use CRON (I mean on the
  net)?
 
  I need to fire some PHP pages at scheduled time daily or weekly,
  ... so on.

 http://www.google.com/search?q=cron+tutorial+php

depending on how you need them to fire off

a) if cron is on the same machine as the php script, then write the 
script as a command-line php script
http://www.php.net/manual/en/features.commandline.php

b) if cron is on a different machine, create a normal web php script 
with some sort of security and use lynx -dump to call it from cron
lynx -dump https://user:[EMAIL PROTECTED]/iben1Bj7s1N/sEg4gIh6G.php

either way add the job to the /etc/crontab file
man 5 crontab
minute hour day of month month day of week user command
ie
27 2 * * * bob php4 -q /usr/local/scripts/update.php

at 2:27am everyday, run 'php4 -q /usr/local/scripts/update.php' as 
the user bob

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Writing CRON jobs!

2004-01-27 Thread Brian V Bonini
On Tue, 2004-01-27 at 08:08, Hamid Hossain wrote:
 Is there any good reference on how to use CRON (I mean on the net)?
 

The best source is the man page crontab(5)


-- 
BrianGnuPG - KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys
  Key Server: pgp.mit.edu
==
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
GnuPG: http://gnupg.org
http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC
Linux Registered User #339825 at http://counter.li.org


signature.asc
Description: This is a digitally signed message part