All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Furness <paul.furness@vil.ite.mee.com>
To: Paul Kraus <pkraus@pelsupply.com>
Cc: linux-newbie@vger.kernel.org
Subject: RE: need method of backing up files
Date: 18 Nov 2002 12:08:32 +0000	[thread overview]
Message-ID: <1037621312.366.39.camel@zebra.vil.ite.mee.com> (raw)
In-Reply-To: <05bb01c2876f$0104b300$64fea8c0@pkrausxp>

I don't know of a way to make it put the machine name at the beginning
of each line. 

As a partial solution, you could put the machine name into the log file
before the copy:

  echo ${machinename} >> $log
  cp --preserve ..... and so on.

I tend to put a lot of date stamps in log files as well as some
comments. It doesn't make much difference to the file size, and it can
be very useful information later, and also make the log file much easier
to read. I tend to do something like this:

  echo "Starting the backup of ${machinename} at `date`" >> $log
  cp --preserve .....

P.


On Fri, 2002-11-08 at 21:37, Paul Kraus wrote:
> How can I add the machine name to the output. For instance...
> This command writes to the log file that a file is in use and was not
> backed up.
> 
> cp --preserve --recursive --update "$source"/* $dest 2>> $log
> 
> So if I have a variable called $machine and it equals the workstations
> name how can I have it written before the log entry.
> 
> Example
> Myworkstation: output from errors out.
> 
> Thanks in advance,
> Paul Kraus
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
> 
-- 
Paul Furness

Systems Manager

Steepness is an illusion caused by flat things leaning over.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

  reply	other threads:[~2002-11-18 12:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-07  6:58 Tkdesk Segmentation Fault Peter
2002-11-07 10:41 ` Elias Athanasopoulos
2002-11-08  2:13   ` Peter
2002-11-08  9:53     ` Elias Athanasopoulos
2002-11-08 11:55       ` need method of backing up files Shaggy Im-erbtham
2002-11-08 13:51         ` Paul Furness
2002-11-08 14:35           ` Paul Kraus
2002-11-08 15:38             ` Paul Furness
2002-11-08 21:37               ` Paul Kraus
2002-11-18 12:08                 ` Paul Furness [this message]
2002-11-08 15:09         ` Mr. James W. Laferriere
2002-11-09  2:36     ` Tkdesk Segmentation Fault lawson_whitney
2002-11-10  4:24       ` Peter
2002-11-10 10:22         ` Elias Athanasopoulos
2002-11-11  3:35           ` Peter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1037621312.366.39.camel@zebra.vil.ite.mee.com \
    --to=paul.furness@vil.ite.mee.com \
    --cc=linux-newbie@vger.kernel.org \
    --cc=pkraus@pelsupply.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.