On 04/07/12 16:34, Nick Rout wrote:
On Wed, Jul 4, 2012 at 1:50 PM, Steve Holdoway <[email protected]> wrote:
I'm sitting here watching pages of verbose messages on an ssh session in
the US. Probably because of the fact that they're all on holiday, the
bandwidth is miniscule.
Put me in mind of the good old days* of VMS, where you could Ctrl-O, and
the display wasn't written to any more. This was actually important at
times ( ie loads of output could bugger up the buffering writing to tape
and decimate throughput ), but it occurs to me that it might be doin the
same thing over this connection.
Was it or an equivalent ever implemented does anyone know??
ctrl-q or ctrl-s (I think) one of them pauses output, the other
restarts. However I can't find a file big enough to take long enough
to cat it that I have time to try the key combos.
AFAIK there WAS nothing... what you want is to change the redirected
output on a running process (stderr or stdout to go somewhere else)
but google came up with a couple of things.....some someone else must
have been peeved at the problem... but nothing as simple as Ctrl-O
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
--
Peter Glassenbury Computer Science & Software Engineering
[email protected] University of Canterbury
+64 3 3667001 ext 7762
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users