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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I start a Cronjob that loads a page?

Status
Not open for further replies.

Petal

Programmer
Jun 8, 2001
56
NO
I would like to start a Cronjob on the server that loads a page every day at 12 pm. How do i start this cronjob on a linux server with telnet?

Please help me!

Maybe this is not the right forum for this question. Which forum is the right? Jørn Arild Andenæs
jaa@jaa.no
 
i don't know what you mean with page loading, but after logging in on the server, just issue "crontab -e" and add there your new job, something like
0 0 * * * <your command>

and what forum? probably Linux(client/desktop)
 
Yep, type &quot;crontab -e&quot; and put in a line for the script you wish to run.

If PHP is installed as a command-line executable, you want (something like) this for 12pm daily:

12 0 * * * /usr/bin/php /path/to/page.php

If not, you can do it using lynx:

12 0 * * * /usr/bin/lynx
If you've only got a telnet account tho, you might not have crontab access :-(

--
Andy Triggs
w: k:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top