Re: [Networker] generating a bootstrap file and email report

2004-12-07 15:35:13
Subject: Re: [Networker] generating a bootstrap file and email report
From: Darren Dunham <ddunham AT TAOS DOT COM>
Date: Tue, 7 Dec 2004 12:34:24 -0800
> Hi Darren,
> It looks like my action field in the notification script is just not
> working. It is firing up a perl script (yes we are on HP/UX).
> The action field seems to me to be the problem.

It *is* firing up the script?  How are you detecting that?

> /usr/bin/sh -c '/usr/bin/cat | /opt/adm/scripts/Bootstrap_Notify'
> Is this out of line?

It might work, but I always worry about quotes and stuff in the action
field itself.  Simply calling the script itself seems to be safer.  I
can't remember when to escape the quotes.

Does something like this work?

Verify your perl script is executable.

open (OUT, ">/tmp/bootstrap");
print OUT <>;

action: /tmp/executable_perl_script

Assuming you get the data in /tmp/bootstrap, then it's just a matter of
refining what the script does.

Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS  
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

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 where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu