Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!zaphod.mps.ohio-state.edu!think.com!barmar From: barmar@think.com (Barry Margolin) Newsgroups: comp.unix.internals Subject: Re: executing a stream Message-ID: <1991Jan17.062934.10863@Think.COM> Date: 17 Jan 91 06:29:34 GMT References: <141325@pyramid.pyramid.com> Sender: news@Think.COM Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 18 In article <141325@pyramid.pyramid.com> moliver@shadow.pyramid.com (Mike Oliver) writes: >Why not just create a file under /tmp (say, /tmp/executable.$$), copy >from stdin into that file, then on feof(stdin) simply close() the file >and exec() it. I guess I trimmed the original article too much, as yours is the second response I've seen that said this. The original poster (who, unfortunately, didn't put a "Subject" line in his message, so readers may be having trouble finding it) mentioned this, but dismissed it as distasteful. Personally, I think it's better than my ptrace-based solution, as it is really simple and completely portable; in fact, I was sort of hoping that my description of the complexity of implementing it without a temp file would cause him to accept the temp-file solution. -- Barry Margolin, Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar