Networker

Re: [Networker] Notifications and Perl

2003-09-18 08:27:47
Subject: Re: [Networker] Notifications and Perl
From: Christian Drexler <CDrexler AT TEE.TOSHIBA DOT DE>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Thu, 18 Sep 2003 14:27:38 +0200
Hi Andrew,
I use a perl script to make the savegroup completion mails look nicer.
The full path to the script is entered into the action field under
"Customize->Notifications->Savegroup Completion" and the script just
reads from STDIN with a
while (<>) {
}

loop, processing line by line.

This is under Solaris but it should work under Windows as well.

Hope this helps

Regards

~christian

On Thu, 18 Sep 2003 13:15:24 +0100
"Mason, Andrew" <Andrew.Mason AT GETRONICS DOT COM> wrote:

> NW6.1.3 on NT4\Win2k
>
> I'd like to create some notifications to custom handle bootstrap and
> savegroup output using Perl.
>
> Trouble is I don't know how to get the data generated by NetWorker
> into the script.  Ie what line do I need in the script to pull the
> info in (to say an array) - and is there any special way I should \
> need to write the 'Action:' line (to feed the info into the script).
>
> I'm working with ActivePerl on Win32
>
> TIA,
>
> Andrew

--
Christian Drexler               mail: cdrexler AT tee.toshiba DOT de
Systems Administrator           phone: +49 211 5296 322
Toshiba Electronics Europe      fax: +49 211 5296 9322
Duesseldorf, Germany            http://www.toshiba-europe.com

--
Note: To sign off this list, send a "signoff networker" 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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>