Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!brunix!dga From: dga@cs.brown.edu (Daniel Gerardo Aliaga) Newsgroups: comp.unix.wizards Subject: writing to stdin Message-ID: <74654@brunix.UUCP> Date: 6 May 91 20:14:12 GMT Sender: news@brunix.UUCP Reply-To: dga@cs.brown.edu (Daniel Gerardo Aliaga) Organization: Brown University Department of Computer Science Lines: 34 Is there any way for a process to write a string to its stdin, such that it can later be read again ? For example, the following code does the job on SunOS: #include #include main() { static char msge[256] = "hello world"; char buf[256]; int i; printf("prompt> "); fflush(stdout); for (i=0; i