Matt Mossholder on 30 Jan 2009 09:02:36 -0800 |
----- "Bill East" <wm.east@gmail.com> wrote: [snip] > (sorry) and I get to wondering, what could I do with this? Could I > potentially pipe output to it, or is it unreachable? I guess it would > still write to stdout, so anything it did output would still come up > on my tty. Are there any tips or tricks for dealing with forked > processes, or should I just kill -9 it and get on with my work? To answer the idle curiosity part, yes, you can send input to the processes, without bringing it back into the foreground (using fg as others have suggested). Off the top of my head, one way to do it would be to send data to /proc/<pid>/fd/0. That sends data to file descriptor 0 of the process, which happens to be "standard input". --Matt ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|