Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by rosslaird

  1. rosslaird

    how to email Bash script results to user

    Thanks for all the help. Finally, I have this working -- I don't know why it works when the other things I tried did not, but at this point I'm just happy that it does. Here's what I did: 1. I created a cron job that looks like this: 0 12 *** /home/myhome/backup.txt 2. In file backup.txt, I...
  2. rosslaird

    how to email Bash script results to user

    Thanks for the tip, Eric -- but no, it doesn't work. When I put the parentheses into the script, which is called remote_backup.sh, and I run: ./remote_backup.sh from the command line, it just hangs.
  3. rosslaird

    how to email Bash script results to user

    Thanks for the help -- but nope, it still doesn't work. First, I tried the line exactly as you specified it above. No dice. Then I broke it down, removing bits off the end until it worked. I get this far: "./bak.sh", but anything after this that I put on the line causes the script to halt...
  4. rosslaird

    how to email Bash script results to user

    The redirection part works fine: I get the email of the text file. It's the first part that's the problem. I'm not sure where in the script to put "rsync parms 2>&1 > filename.txt;" when I enter than line into a console window I get an error message from rsync (which makes sense, since "parms"...
  5. rosslaird

    how to email Bash script results to user

    The above is close to what I had originally (ls -l). The problem is that this sends a listing of files, but does not show other messages that I see onscreen when I run the script from a console. From the console, I see rsync's and fmirror's own messages (errors and other information), which I...
  6. rosslaird

    how to email Bash script results to user

    I've been looking around for awhile trying to figure out how to do what seems like a very simple thing: I have a Bash script that runs rsync and fmirror for backups. It's only a few lines long (it just has the commands to run the backup). When I run script in a console window, I see it working...

Part and Inventory Search

Back
Top