On 5/18/07, thad <[EMAIL PROTECTED]> wrote:
call your script in its absolute path.
the script running on cron is called from its absolute path e.g., 0 0 * * * /root/scriptname | mailx [EMAIL PROTECTED] so i tried it manually but as i've said the email i received was empty. On 5/17/07, jan gestre <[EMAIL PROTECTED]> wrote:
> Hi guys, > > I made a simple script to backup our mysql databases and i have them run as > cronjobs however we want to know the results if it gets backed up > successfully or not. > > here is the script: > > #!/bin/sh > # Backup the database > # > # change directory to the external drive > cd /media/FreeAgent_Drive/DBbackup/ > mysqldump -v database -uuser -ppassword > database.sql > > I tried running the script manually and email after it completes the job. > > # sh scriptname | mailx [EMAIL PROTECTED] > > however the email i got was empty, even if i made it verbose, the email is > still empty. > > what changes needs to be done in order for this script to tell me if the > backup is successful or not and email the results? > > tia > > _________________________________________________ > Philippine Linux Users' Group (PLUG) Mailing List > [email protected] (#PLUG @ irc.free.net.ph) > Read the Guidelines: http://linux.org.ph/lists > Searchable Archives: http://archives.free.net.ph > -- sometimes truth is stranger than fiction -bad religion- http://www.bloglines.com/blog/mailist _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

