Try using the -t switch to force pseudo-tty allocation.
- Lou
On Wed, 4 Aug 1999, [iso-8859-2] Landkammer Jiøí wrote:
> Hello
>
> How can I use sftp in my shell script? The password isn't problem I use
> ssh-agent or null Passphrase, but what commands?
> My first test was broken.
>
> $ sftp plat <./file_with_commands
> local path : /usr/users/jiri
> remote path : /usr/users/jiri
> Warning: tcgetattr failed in ssh_rl_set_tty_modes: Not a typewriter
>
> My second test was broken too. :-(
> $ sftp plat <<EOF
> > ls
> > lpwd
> > put test.file
> > bye
> > EOF
> local path : /usr/users/jiri
> remote path : /usr/users/jiri
> Warning: tcgetattr failed in ssh_rl_set_tty_modes: Not a typewriter
>
> Is any solution?