On Wed, 2012-07-04 at 16:44 +1200, Peter Glassenbury(UoC) wrote: > > > http://stackoverflow.com/questions/1323956/how-to-redirect-output-of-an-already-running-process > > A couple of solutions mentioned..(cut and paste from one.>) > The gist: attach to the running process using gdb, then do 'p > close(1)' and 'p creat("/tmp/foo3", 0600)' to redirect STDOUT, then > disconnect gdb while leaving the program running. > > Pete
Ugh! I wonder if you can directly manipulate /proc/<pid>/fd/1 ?? I assume they tried that first, but it's a bit of an improvement if it works. Just how to link a little shellscript to a hotkey for a ssh session. Anyone bored??? (: Steve -- Steve Holdoway BSc(Hons) MNZCS <[email protected]> http://www.greengecko.co.nz MSN: [email protected] Skype: sholdowa
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Linux-users mailing list [email protected] http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
