Re: [Networker] cat.exe for w2k3

2005-04-27 11:43:48
Subject: Re: [Networker] cat.exe for w2k3
From: Darren Dunham <ddunham AT TAOS DOT COM>
Date: Wed, 27 Apr 2005 08:38:20 -0700
> Yeah, we use blat also, but I also needed functionality that is normally
> found on Unix systems, such as piping, perl, etc.  I also use the program
> "tee" so that I can have the output from a savegroup sent to a file, and to
> blat at the same time.  That way, I've got two copies of the logs in case
> either the email, or the log file is lost for some reason.  I could do this
> from within perl, but I haven't had the time to write the script for that
> yet.  I think it's item 2784 on the "todo" list.

I didn't make the suggestion, because for some admins installing perl is
more onerous than many other tasks.  But if you already have perl, then
this is pretty simple.

You could even use 'perl -p -e ";"' by itself as a crude 'cat'.

C:\WINNT>c:\perl\bin\perl -p -e ";" wmsetup.log > other.txt
C:\WINNT>type other.txt
[WMC Logging begun.  Logging at level: '2']

Of course added complexity is possible.  :-)

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 listserv.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

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