🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1152

execute stdin ?

#1152
From: Georg Wittig
Date: Thu, 13 Sep 1990 12:46
18 lines
988 bytes
Is it possible (in sh or in csh) to execute a program that is read from
stdin? For example, if the program ``myprog'' is in compressed format, it
isn't nice to type

	uncompress myprog.Z ; myprog params_of_myprog ; compress myprog

Rather, it would be nice to be able to write something like

	zcat myprog.Z | execute_stdin params_of_myprog
or	`zcat myprog.Z`	params_of_myprog
or	???

Any ideas? Thanks in advance
-- 
Georg Wittig  GMD-Z1.IT	| wittig@gmdzi.gmd.de	| "Freedom's just another word
P.O. Box 1240		| wittig@zi.gmd.dbp.de	|  for nothing left to lose"
D-5205 St. Augustin 1	|			| (Kris Kristofferson)
West Germany		| (+49) 2241 14-2294	|
Technical Details
Message-ID: <3335@gmdzi.gmd.de>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!unido!gmdzi!wittig

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!unido!gmdzi!wittig
From: wittig@gmdzi.gmd.de (Georg Wittig)
Newsgroups: comp.unix.shell
Subject: execute stdin ?
Message-ID: <3335@gmdzi.gmd.de>
Date: 13 Sep 90 12:46:26 GMT
Distribution: comp
Organization: GMD - The German National Research Center for Computer Science
Lines: 18