The above syntax means that at the start(0) of every hour(*) of every day(*) of every month(*) of every year(*), wget will run the exp.php and output the contents to testphp2. And when this runs, it will send a mail to
This will automatically add it to cron and execute it at the designated time
If you do not want to output the results anywhere simply omit
To view the contents of cron simply type crontab -l
to remove tasks from cron simply type crontab -r
Say you are user root and you want to run a system critical php program(say http://www.poornaminc.com/exp.php) every hour from cron and output the results to a file /home/poornam/phptest2 here's what you do
ssh into the system as root
create a file say( /etc/cron.hourly/phpcron)
Add the folllowing lines to it
/usr/bin/wget -O/home/poornam/testphp2 http://www.poornaminc.com/exp.php
save and chmod to 755
Here cron automatically reads /etc/crontab , detects all scripts in /etc/cron.hourly (in our case phpcron) )and executes them
For hourly , daily, weekly and monthly, store your scripts in /etc/cron.hourly, /etc/cron.daily, /etc/cron.weekly, /etc/cron.monthly respectively
A student once asked his teacher, "Master, what is enlightenment?"
The master replied, "When hungry, eat. When tired, sleep. When you need care, come to bobcares...."
-Mark Adams www.bitserve.com - Secure Michigan web hosting for your business.
Only host still offering a full money back uptime guarantee and prorated refunds.
Offering advanced server management and security incident response!