Cron Job with litespeed pdf to mail

Discussion in 'Server Operation' started by rajatjpatel, Aug 31, 2010.

  1. rajatjpatel

    rajatjpatel New Member

    0 down vote favorite

    Hi Folks,

    I need a help to write code in php following server generate .pdf file at /root/datatools/report folder, which works with firefox well i need to write a php and get run in cron can same help me with this i dont coding in php or any other scripting.

    we want to watch the report folder and if any request comes get report for the day so we should grep that date and mail to said id

    and this is ubuntu server with litespeed web server php5/mysql and tcpdf which generate .pdf files.

    sorry for my english.

    watch grep -i to today date /root/datatools/report/IntegraMed-echo "$(date)".pdf wget "$(date)".pdf [email protected]

Share This Page