[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Backup Script
From: |
Conrad J. Sabatier |
Subject: |
Re: [Help-bash] Backup Script |
Date: |
Fri, 25 May 2012 17:22:34 +0000 (UTC) |
In article <address@hidden>,
Craig A. Adams <address@hidden> wrote:
[snip]
>I am completely lost on how to generate the log file. Can anyone give me
>any ideas? I would like the echo statements in the scripts along with
>the output from the rsync command.
A very simple method I use in some of my scripts is simply to wrap all
of the commands whose output I want to have redirected to the same
location between a pair of "curly braces", followed by the redirection
operator.
For example:
{
do_something
do_something_else
one_more_something
} >/wherever
Hope this helps.
--
Conrad J. Sabatier
address@hidden