fork download
  1. #!/bin/sh
  2. # script :- bdayscript.sh -- send Birthday mails
  3. #
  4.  
  5. # to run in a cron job need to do this
  6.  
  7. # crontab -e
  8. # 0 0 * * * /root/home/bdayscript.sh
  9.  
  10. if [`date "+%H"` == "00"]
  11. then
  12. awk -F"," '$2 == `date "+%m/%d" { echo "Happy Birthday $1"
  13. mailx -s "Happy Birthday $1" -c "souvik.biswas1988@gmail.com" $3 << "Happy Birthday $3"}' bday.csv
  14.  
  15.  
  16. fi
Success #stdin #stdout 0.02s 5312KB
stdin
Standard input is empty
stdout
Standard output is empty