![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need assistance ----SH schell script | shahidbakshi | Shell Programming and Scripting | 2 | 02-22-2008 03:28 AM |
| I need an assistance | mytilini boy | Shell Programming and Scripting | 1 | 05-25-2007 05:42 PM |
| KSH Script Assistance | Brusimm | Shell Programming and Scripting | 3 | 05-10-2007 05:15 AM |
| Perl script assistance; paste word into external command | bru | Shell Programming and Scripting | 10 | 02-23-2007 01:04 AM |
| Interpreting a script line by line assistance | mdpgc | Shell Programming and Scripting | 0 | 02-21-2007 08:57 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need a little assistance with a shell script
I need to modify a script to send an attatched file. I have researched and read the faq's but have not found a solution for my script. Here is a copy of the code I am using:
Code:
#!/bin/sh
mysqldump --opt --skip-add-locks --user=****** --password=******* databasename | gzip > /home/******/backups/Databasename_`date "+%Y-%m-%d"`.gz
cd /home/*****/backups/
find *.gz -mtime +7 -exec rm -rf {} \;
Any help is greatly appreciated. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||
|
|||
|
Quote:
What I want to do is incorporate in the code I posted above, to send the file to my email as well as save it to the backups file as is coded. The problem I have with suggested examples is that they all specify a specific file. The code above generates a new file with a different name everyday, and that is where I have the hang up. Thanks for your help in this. |
|||
| Google The UNIX and Linux Forums |