execute stdin ?

Georg Wittig wittig at gmdzi.gmd.de
Thu Sep 13 22:46:26 AEST 1990


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 at gmdzi.gmd.de	| "Freedom's just another word
P.O. Box 1240		| wittig at zi.gmd.dbp.de	|  for nothing left to lose"
D-5205 St. Augustin 1	|			| (Kris Kristofferson)
West Germany		| (+49) 2241 14-2294	|



More information about the Comp.unix.shell mailing list