To: [EMAIL PROTECTED]
>I have just upgraded from ssh 1.something to 2.2.0 on my Sun unix machines
>(Solaris 7). I have a script which runs by hand with no worries, however, it
>gives me errors when run via cron - simply because I don't have a tty attached.
>
>For example, doing "ssh user@remote host /bin/w -u" gives the output as:
>You have no controlling terminal.Can't initialize readline for confirmations.
> 11:08am up 15 day(s), 2:24, 5 users, load average: 0.26, 0.12, 0.08
>
>The error is coming from ssh2.c where it tries to open /dev/tty and fails.
>Looking at the ssh man pages I thought adding a "-t" would allocate a tty.
>But no luck there. Apart from hacking the source code to comment out that test
>does anyone have any suggestions?
You'll probably have to push "ldterm" and another module that I can't remember
right now. It was kind of annoying while trying to get ssh to use the pty returned
by pty-redir without these modules pushed on the stream. There must be a way that
pty-redir can push the right modules and have them retained over the execv but,
I couldn't get it to work.
If I find the other module name I'll post it.
Good luck,
Paul