Latest 100 public snipts »
robertbanh's
snipts » shell
showing 1-2 of 2 snipts for shell
-
∞ Cron job example
# This will kick off a cron job at 2:07am. which $EDITOR EDITOR=vi export EDITOR crontab -e MAILTO="bbb@bbb.com" 7 2 * * * /usr/local/bin/php -f /home/bbb/cron.php crontab -l
-
∞ Set up mail forwarding on linux
# add a .forward file to your home directory touch .forward # add your email address vi .forward <user>@<mail>.com # change permission else it won't work chmod 600 .forward # test mail send, replace 'user' with your login mailx -s 'test from cluster' user < /dev/null


