AminetAminet
Search:
84480 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/cli/CatchIt.lha

Mirror:Random
Showing:ppc-powerupgeneric
No screenshot available
Short:Catch StdOut Output and give it to an application.
Uploader:oesi paradis rhein de (Andreas S Oesterhelt)
Type:util/cli
Architecture:m68k-amigaos
Date:1994-08-05
Download:http://aminet.net/util/cli/CatchIt.lha - View contents
Readme:http://aminet.net/util/cli/CatchIt.readme
Downloads:641

CatchIt is a quick'n'dirty Hack, that is similar to 'pipe' or
'APIPE:', with the one difference that it does not invoke the
application whose stdout-output is to be captured.

Synopsis: CatchIt <command> <arguments, including * for the capture>

Some examples:

CatchIt Ed *   - catches the input fom the invoking process until
                 Ctrl-\ (=EOF) and then runs Ed on the input.
                 (If invoked from a shell window, you can enter the
                 text manually.)

CatchIt copy * prt:  - same as above, copies input to the printer
 		       instead.

You get an error, if either

- your ram is full
- T: is not available
- less than 2 arguments are supplied

It developed from the spontaneous need to have a user "display" 
on my system, that would display messages sent to him on the
console for test purposes. So I wrote CatchIt and set up an
alias in the UUlib:aliases File:

display:: "|CatchIt more *"

Now all incoming mail for user "display" is displayed by more
upon arrival. This is particularly useful if you run AmiTCP and
SMTPd, as people can send urgent messages Cc'ed to display.

(Note: after being displayed the mails are lost. If you want to
save them, add a second recipient to the alias.)

You can easily set up pseudo-users for any purpose, say

binaries:: "|CatchIt uudecode *"
playsound:: "|CatchIt s:decode'n'play *"
BlackHole(TM):: "|CatchIt copy * nil:"
printer::...
viewpic::.....


CatchIt is Public Domain.

© 1994 by Andreas Oesterhelt (oesi at paradis.rhein.de)


Contents of util/cli/CatchIt.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 4867    7508  64.8% -lh5- 997f Aug  4  1994 CatchIt
[generic]                  904    1650  54.8% -lh5- 69db Aug  4  1994 CatchIt.doc
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         2 files    5771    9158  63.0%            Aug  5  1994

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>