Fw: File descriptors and screen and you

2007-02-08 Thread Joe Zbiciak
s, or separate screen windows as the case may be. I hope this helps, --Joe -- We sell Spatulas, and that's all! http://spatula-city.org/~im14u2c/ http://sdk-1600.spatula-city.org/ http://intyos.spatula-city.org/ - Original Message ---- From: Alan Young <[EMAIL PROTECTED]> To: Michael Sc

Re: File descriptors and screen and you

2007-02-08 Thread Alan Young
Michael Schroeder wrote: I want to avoid going the tmp file route if at all possible. Is there a way I can echo tty's output so that I can grab it from a filehandle? You need some interprocess communication way. Some ways could be - a named pipe (but that's close to a tmp file) I'm not as fa

Re: File descriptors and screen and you

2007-02-08 Thread Michael Schroeder
On 2/6/07, Alan Young <[EMAIL PROTECTED]> wrote: > I have a bit of perl code that I'm trying to make work: > > sub DB::get_fork_TTY { > >open my $SCREEN, qq{&3>1 screen -t 'Child $$' sh -c "tty &1>3 ; sleep > 100" |} > or return ''; > >my $tty = <$SCREEN>; > >return $tty; > } >

Re: File descriptors and screen and you

2007-02-08 Thread Alan Young
Andy Harrison wrote: What exactly are you trying to accomplish with your script? I'm trying to debug a perl script that forks multiple times. Anything less than 10 forks and it works just fine. If the script forks more than 10 times, at some random point past 10 the parent script process d

Re: File descriptors and screen and you

2007-02-08 Thread Andy Harrison
On 2/6/07, Alan Young <[EMAIL PROTECTED]> wrote: I have a bit of perl code that I'm trying to make work: sub DB::get_fork_TTY { open my $SCREEN, qq{&3>1 screen -t 'Child $$' sh -c "tty &1>3 ; sleep 100" |} or return ''; my $tty = <$SCREEN>; return $tty; } I'm getting bad fi

File descriptors and screen and you

2007-02-06 Thread Alan Young
I have a bit of perl code that I'm trying to make work: sub DB::get_fork_TTY { open my $SCREEN, qq{&3>1 screen -t 'Child $$' sh -c "tty &1>3 ; sleep 100" |} or return ''; my $tty = <$SCREEN>; return $tty; } I'm getting bad file descriptor errors, so I'm assuming screen is cle