- Login to server using SSH (Windows users PuTTY)
- sudo crontab -l
- sudo crontab -e
- Linux : Open vim editor and allow to enter commands
- Ubuntu : For the first time it asks which editor to use (nano is easy)
- Enter following commands and save the file
MAILTO=yyy@gmail.com
*/5 * * * * /usr/bin/wget http://yyy.com/mail201506/index.php >/dev/null
>/dev/null
Send all the normal output to a place called "/dev/null" which is basically like a black hole. It accepts anything you dump there, but you will never see it again.
No comments:
Post a Comment