in reply to Standard inpute must be tty

Perl does not require STDIN to be a TTY.

We'd need to know more such as what generated this error.

Replies are listed 'Best First'.
Re^2: Standard input must be tty
by sameerperl (Initiate) on Jun 26, 2008 at 16:47 UTC
    my code is like this
    #!/usr/bin/perl
    @a =`ssh -t 192.168.2.9 -l manoj -C su cvs<<EO
    access123
    access
    EO`;
    print "@a\n";
    OUTPUT
    Pseudo-terminal will not be allocated because stdin is not a terminal.
    with this asking for a password.
    Can we restrict this prompt with this program.

      Did you try to do that from the command line?

      Try Net::SSH2 or Net::SSH::Perl which will let you pass username/pass