🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bbs.waffle
Article #3305

Re: How to redirect output from ALIASES file?

#3305
From: Gregory Youngblood
Date: Mon, 04 Jan 1993 15:34
35 lines
2112 bytes
frampton@vicuna.ocunix.on.ca (Steve Frampton) writes:
> 
> I was wondering how it would be possible to have an alias set up in
> the system/aliases file that would run a program but *direct the output
> to NUL*.  Currently I have it set up like:
> 
> special-user   | d:\waffle\bin\speclpgm.exe
> 
> When mail is sent to 'special-user' it causes the speclpgm.exe file
> to be executed.  Excellent.  But the program outputs a bunch of stuff
> out, which can be very annoying to a local user.  I would like to
> redirect the output to NUL to prevent this...but the following does
> *not* do the trick:
> 
> special-user   | d:\waffle\bin\speclpgm.exe > nul
> 
> Now, I suppose I could have a .BAT file execute instead, and the .BAT
> file would simply run the program with the redirection -- but my question
> is, how does Waffle get the input (the mail message) to the program...
> ie. how would I construct the .BAT file to call this program and still
> maintain the (already-handled) input redirection?
> 
Here is a thought.  Did you make this program yourself or are you using
someone else's program?  If you did, then the problem is more than likely
going to be the program doesn't write standard out.  If not, I'm not sure
what you can do.  Try redirecting to a file, and then delete the file after.

It's an idea.

Greg

.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.
.   TCS Consulting Services   P.O. Box 600008   St. Paul, MN  55106-0008    .
.   ..!srcsip!tcscs!zeta                 ..!src.honeywell.com!tcscs!zeta    .
.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.
Technical Details
Message-ID: <2ZwuwB2w165w@tcscs.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!src.honeywell.com!tcscs!zeta
References: <2ieuwB4w165w@vicuna.ocunix.on.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!src.honeywell.com!tcscs!zeta
From: tcscs!zeta@src.honeywell.com (Gregory Youngblood)
Newsgroups: comp.bbs.waffle
Subject: Re: How to redirect output from ALIASES file?
Message-ID: <2ZwuwB2w165w@tcscs.UUCP>
Date: Mon, 04 Jan 93 09:34:24 CST
References: <2ieuwB4w165w@vicuna.ocunix.on.ca>
Reply-To: zeta%tcscs@src.honeywell.com
Organization: TCS Consulting Services
Lines: 35