Re: cronjob.....
"Brian K. White" <[email protected]>
| Newsgroups | gmane.linux.redhat.release.enigma |
|---|---|
| Organization | Aljex Software |
| Message-ID | <[email protected]> |
System wrote: > Hello All, > > I want to schedule a cronjob for every 30 mins. which will execute a script > on http://somedomain.com/test.php > > Can I do this? > > Thank you, > > Tina.... vi /etc/crontab 5,35 * * * * root wget -q -O /dev/null http://somedomain.com/test.php or... 5,35 * * * * root echo "GET test.php" |nc somedomian.com 80 >/dev/null You didn't say what, if anything you wanted to do with output that the cgi generates, merely that you wanted to hit the cgi (presumably simply to cause it to run), so the above examples simply discard all output from the cgi. You could have it wind up in an email to root, or saved in local files, or always overwriting the same local file etc... but you will have to investigate wget's "-O" and "-nc" options yourself since you neglected to be forthcoming about your actual wishes. it's a pretty good idea to replace the word "root" with some non-priviledged user too -- Brian K. White -- [email protected] -- http://www.aljex.com/bkw/ +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani