Networker

Re: [Networker] Send Savegroup Completion Report to a file

2002-10-02 12:38:17
Subject: Re: [Networker] Send Savegroup Completion Report to a file
From: David Fields <david.fields AT ACS-INC DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 2 Oct 2002 12:28:18 -0400
I do something similar to this using the tee command to split the output to
two different locations.  You could also write shell/perl/whatever scripts
to accomplish this.


On Tue, 1 Oct 2002 14:14:19 -0700, Deb <deb AT TICKLEME.LLNL DOT GOV> wrote:

>Here's something waaaay over-simplified.  Notifications takes input from
>stdout.  Create a shell script that would essentially be the back-end of
>a pipe from notifications.
>
>#!/bin/sh
>
>cat >> /some/dir/savelog_file
>
>
>Okay, when you write the script, you'll probably want to do a little
>checking for the whether the file and directory exist, and so on.
>
>Go to Notifications (select View -> Details) and use Create,
>and in the Action area put in the path to your shell script.  In the
>Event area, select only Savegroup.  In Priority select notic and Alert.
>
>And apply.
>
>Test.
>
>Debug until working.
>
>Yer done.
>
>deb
>
>--
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-
>          There are 010 types of people in the world:
>      those that understand binary, and those that don't.
>ô¿ô
> ~
>
>--
>Note: To sign off this list, send a "signoff" command via email
>to listserv AT listmail.temple DOT edu or visit the list's Web site at
>http://listmail.temple.edu/archives/networker.html where you can
>also view and post messages to the list.
>=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

--
Note: To sign off this list, send a "signoff" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=