
June 30th, 2001, 05:50 PM
|
|
Member
|
|
Join Date: Jun 2001
Location: USA Florida
Posts: 6
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
need a little help with mailto in perl
want to add code to this to send me the file
it's a backup db this works great but I want to add the code so it sends me the new file every night once it makes it
code:--------------------------------------------------------------------------------
mysqldump -u dbuser -pdbuserpassword --opt dbname > /home/youraccount/dbbackup.sql
gzip /home/youraccount/dbbackup.sql
mv /home/youraccount/dbbackup.sql.gz /home/youraccount/dbbackup-`date +%m-%d-%Y`.sql.gz
---------------------------------------------------------------------------------------file name is dbbackup.pl---------------------------------------------------
now I thought adding
mailto= name@domain
dbbackup-`date +%m-%d-%Y`.sql.gz
would work but not sure
I'm a newbie at this can someone help please 
|