On Mon, Feb 21, 2005 at 05:19:22AM -0800, [EMAIL PROTECTED] wrote: [...] > while running: > > myapp 2>/dev/null& > > I want to change 2>&1 without stop this job. > Is there some tips to finish it? [...]
If you mean that you also want to discard stdout, you can try: gdb myapp << EOF attach $! call dup2(2,1) detach EOF or: gdb myapp << EOF set auto-solib-add off attach $! share libc\\..* call dup2(1,2) detach EOF myapp needs to be linked dynamically to the libc and even then, hat's not guaranteed to work. -- Stéphane _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash