Pseudo-terminal will not be allocated because stdin is not a terminal.

From: Fabio C. (fabio_at_non-existent.int)
Date: 03/12/04


Date: Fri, 12 Mar 2004 17:38:54 +0100

This is probably a FAQ, but none of the solutions I've found have been
helpful till now. So, please accept my apologies.

Within a shell script, I used some ssh connection to establish remote
connections for issuing some commands, like in the example below:

#!/bin/sh
ssh host01 <<-EOF
...
...
some commands
...
EOF

...that works beautifully :)

But, anyway, the following error appears:

Pseudo-terminal will not be allocated because stdin is not a terminal.

Since the script is launched by an application that checks for errors on
STDERR, I need as soon as possible to find a possible method to suppress
those errors.

I've already tried using the '-t' switch but still the error appears.

Any help?
Thanks in advance!

Fabio



Relevant Pages

  • Re: Great SWT Program
    ... to unite temporarily against their common enemy -- me? ... the manual to write a shell script, oops, .bat file. ... (It lists all commands whose ...
    (comp.lang.java.programmer)
  • Re: Sysinstall does not install GENERIC kernel
    ... But except of this a problem I found a new trouble: system commands ... think that the best way to customize your jumpstart installation is ... You could then put all your command in the "post" shell script of this ... #+ Nvidia (driver "nv") ...
    (freebsd-questions)
  • Re: [shell] ftp
    ... i have a problem with my shell script. ... execute other commands.. ... normal shell after connecting the FTP ...
    (comp.unix.shell)
  • Re: Piping into a shell script
    ... > I want to write a shell script in bash, where I can pipe other commands ...
    (comp.os.linux.misc)
  • Re: Waiting on end of program execution from shell script?
    ... > myprog.class) among other commands. ... the further shell script execution should not wait for the ... > java program end but resume other commands immediately after ...
    (comp.unix.shell)