Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP script every hr using cron jobs

Status
Not open for further replies.

solex

Programmer
Joined
Feb 28, 2003
Messages
91
Location
GB
hi, i dont know if this post should be here, but as its a bit to do with php i will, sorry if its off forum topic.

i run a php script every hr useing cron jobs, but i now want to change it to every 20 secs, how can i do this? (i have cpanel)

thanx in advance

SOLEX


 
What is (i have cpanel)?

For a more pertinent forum, see:

You can easily find your answer by searching for 'cron seconds' or 'cron minutes' at your favorite search site. I can't offer an answer about the command line directives since I use a GUI in OSX to tickle CRON.


- - picklefish - -

Why is everyone in this forum responding to me as picklefish?
 
Hi,

As far as i know , an entry in crontab file is limited to only minute level because the cron daemon checks every minute for the entry in crontab file and again it sleeps just to wake up next minute.

But there can be some workaround like writing a shell script which sleeps for the specified seconds and doing the action u want after wake up.Then u can list that script which executes every minute in ur crontab file.but again post it in unix/linux related forum to learn more abt that.




--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top