in reply to Valid tty problem

I think Expect should do what you want.

Replies are listed 'Best First'.
Re: Re: Valid tty problem
by devslashneil (Friar) on May 05, 2004 at 03:36 UTC
    Thankyou this was exactly right!

    When i run:
    #!/usr/bin/perl use Expect; my $exp = Expect->spawn('./test', undef) or die "Cannot spawn ./test.pl $!\n"; print $exp->expect;
    Against that C program it prints "Is a tty!".

    Thanks a lot for your help.

    Neil Archibald