Forum Moderators: coopster
Second, cron isn't accessed via the browser, but via the terminal (bash or tsch):
crontab -e
This open's VI (http://www.vim.org/) and you can add a cronjob, like so:
* * * * * command to be executed
[edited by: eelixduppy at 11:02 am (utc) on June 18, 2007]
The reason why:
I have a nix test bed but I need to set a demo on my laptop
you may reach it and use it as follow
I made the following for a friend so here you go:
CRON (cron tables could be edited via the command line or using putty)Using PUTTY:
Enter IP address
Left nav click SSH to expend and click again SSHMove "BLOFISH" to the top of list
Click “open”Using PICO editor: (PUTTY DEFAULT EDITOR)
Enter your UN, press enter
Enter your PW, press enter (don't be surprised in Linux fashion the PW typing is hidden!)Type in: crontab –e (space between crontab and –e)
If there are any pre-existing “jobs” from the server admin move those down two lines
to comment your job use ###########
Go back to the top and enter your taskHere we use wget()
To use wget() you need to ensure that it is installed
Type in the PICO: wget –help press enter
If you get a bunch of information then you are OKType in the PICO:
1 */3 * * * wget [my_web...]
Ex: should run the first minute of every three hours (8 times a day)
Press enter
Last: Press ctrl and x to exit
You will be asked to type Y or N
Type your answer
Press enter
That’s it done!
FYI: bottom of PICO shows a list of commands
Each starting with “ ^ “ do not type the ^ it only means: Press CTRL :)PHP script:
Needs to be shmod at: 755