🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bbs.waffle
Article #3299

How to redirect output from ALIASES file?

#3299
From: Steve Frampton
Date: Mon, 04 Jan 1993 07:55
30 lines
1953 bytes
Hello everyone:

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?

Any help you can provide would be most appreciated.  Thanks in advance!

+--------+< Unabashed Shabba Ranks Fan! >+------+--------------------+
| Steve Frampton - frampton@vicuna.ocunix.on.ca | Steve Frampton     |
| I collect postcards!  If you send me one from | 501-A Princess St. |
| your area, I'll send one in return.  Send to >| Kingston, Ontario  |
| (Don't forget both email and mailing address) | CANADA   K7L 1C3   |
+-----------------------------------------------+--------------------+
Technical Details
Message-ID: <2ieuwB4w165w@vicuna.ocunix.on.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!torn!news.ccs.queensu.ca!qucis.queensu.ca!ember!vicuna!frampton

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!torn!news.ccs.queensu.ca!qucis.queensu.ca!ember!vicuna!frampton
From: frampton@vicuna.ocunix.on.ca (Steve Frampton)
Newsgroups: comp.bbs.waffle
Subject: How to redirect output from ALIASES file?
Message-ID: <2ieuwB4w165w@vicuna.ocunix.on.ca>
Date: 4 Jan 93 07:55:24 GMT
Reply-To: frampton@vicuna.ocunix.on.ca
Followup-To: comp.bbs.waffle
Organization: Vicuna Systems, Kingston, Ontario, CANADA
Lines: 30
Content-Type: text/plain; charset=us-ascii