Find us on facebook

Jun 29, 2015

Setting up a cron in AWS Linux/Ubuntu


  1. Login to server using SSH (Windows users PuTTY)
  2. sudo crontab -l
  3. sudo crontab -e
  4. Linux : Open vim editor and allow to enter commands
  5. Ubuntu : For the first time it asks which editor to use (nano is easy)
  6. 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