🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1158

Re: execute stdin ?

#1158
From: Guy Harris
Date: Sat, 15 Sep 1990 18:36
13 lines
890 bytes
>Is it possible (in sh or in csh) to execute a program that is read from
>stdin?

It's possible, although the ways you can do it depend on whether the
"program" is an executable image or a script.

If it's a script, you can try piping it to the interpreter (shell or
whatever).

If it's an executable image, in most UNIXes you must either put it into a
file, or construct some program that reads its standard input and sets
up its address space to contain the executable image it's reading and
then jumps to it.
Technical Details
Message-ID: <4068@auspex.auspex.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!auspex!guy
References: <3335@gmdzi.gmd.de>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!auspex!guy
From: guy@auspex.auspex.com (Guy Harris)
Newsgroups: comp.unix.shell
Subject: Re: execute stdin ?
Message-ID: <4068@auspex.auspex.com>
Date: 15 Sep 90 18:36:02 GMT
References: <3335@gmdzi.gmd.de>
Distribution: comp
Organization: Auspex Systems, Santa Clara
Lines: 13