Re: Background process I\O redirection

2001-06-19 Thread guy keren
On Sun, 17 Jun 2001, Shlomi Fish wrote: > > (gdb) print open("/dev/tty4", 0) /* '0' stands for O_RDONLY */ > > $ = 4 > > (gdb) print dup2(4, 0); > > $ = 0 > > (gdb) print open("/dev/tty4", 01) /* '01' stands for O_WRONLY */ > > $ = 5 > > (gdb) print dup2(5, 1); > > $ = 0 > > (g

Re: Background process I\O redirection

2001-06-19 Thread guy keren
On Sun, 17 Jun 2001, Nadav Har'El wrote: > On Sun, Jun 17, 2001, guy keren wrote about "Re: Background process I\O redirection": > >... > > 3. on a shell attached to '/dev/tty5' i run a debugger: > > gdb /usr/bin/ncftp 7787 > > > >

Re: Background process I\O redirection

2001-06-17 Thread Shlomi Fish
On Sun, 17 Jun 2001, guy keren wrote: > > in continuation to the previous post, i made a test that seemed to work > (at least partially) to regain control of 'ncftp': > > 1. in a shell attached to /dev/tty1, i ran 'nohup ncftp'. >i didn't connect to any server, and then ctrl-Z, 'bg', and 'exi

Re: Background process I\O redirection

2001-06-17 Thread Nadav Har'El
On Sun, Jun 17, 2001, guy keren wrote about "Re: Background process I\O redirection": > >... > 3. on a shell attached to '/dev/tty5' i run a debugger: > gdb /usr/bin/ncftp 7787 > >in the debugger: > >(gdb) print open("/dev/tty4&q

Re: Background process I\O redirection

2001-06-17 Thread guy keren
in continuation to the previous post, i made a test that seemed to work (at least partially) to regain control of 'ncftp': 1. in a shell attached to /dev/tty1, i ran 'nohup ncftp'. i didn't connect to any server, and then ctrl-Z, 'bg', and 'exit' (had to 'exit' twice, since the shell notic

Re: Background process I\O redirection

2001-06-16 Thread guy keren
On Sun, 17 Jun 2001 [EMAIL PROTECTED] wrote: > Lets say I run something from a shell and detach it > ($ ./some-proggie &) > My question is whether Ican have any control of it's output\input after > killing the shell itself. Some people I asked recommended a program named > "screen", but frankly

Background process I\O redirection

2001-06-16 Thread milesteg
Hello all. This may sound like a newbie question, but I had no alternative but to turn to the experts as no one on irc could answer it clearly :P Lets say I run something from a shell and detach it ($ ./some-proggie &) My question is whether I can have any control of it's output\input after kil