Cron Daemon

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Cron Daemon

Post by Shendemiar »

I'm new to cron, and i'm currently going through manuals... But there are loads of commands.

I would like to have my php code elsewhere on the net accessed.

I'd like to ask is there's any command that would act like a normal browser request for certain page somewhere on the net.

If not, it can(?) execute programs on the server. I know nothing of unix enviroment (ok i've used pine and chmod), so what kind of program i would need to do the thing?

***********************

You were kicked from #unix by wpp (wget)

I'll investigate that wget... I was currently on b... commands on the manual...
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post by Shendemiar »

You can achieve the previous by:

in unix shell: crontab -e
opens a config file for cron
putting there: * * * * * wget http://www.this.that/main.php -O saveasthisfilename
will save that web page to saveasthisfilename, also executing the page! This is done each minute! See Wget manual for other timining definitions.

Wget manual:
http://www.gnu.org/software/wget/manual ... /wget.html

VI, unix text editr manual:
http://www.eng.hawaii.edu/Tutor/vi.html

Crontab "manual":
http://weather.ou.edu/~billston/crontab/
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

export EDITOR=/usr/bin/vim (or to whatever editor you like)

and then edit crontab file ;)
Post Reply