Operating System - HP-UX
1826103 Members
4769 Online
109690 Solutions
New Discussion

Re: Scripting issue where it wants a tty

 
Bernie Vande Griend
Respected Contributor

Re: Scripting issue where it wants a tty

Thanks Carlos, that's what I was looking for. I was just brain-dead big time on that one. Unfortunately it doesn't solve my problem, as redirecting input doesn't allow me to automatically enter my own input. Thus Clay's plan B above, would be the solution to have specially pseudo driver that handled this. However, I'm going to use expect to take care of this problem. No need for more responses. Thanks all.
Ye who thinks he has a lot to say, probably shouldn't.
Kohnke
New Member

Re: Scripting issue where it wants a tty

The problem is the (s)tty setting in the profile.

To get rid of this problem:

if tty -s
then
PS1=.....
fi
All the tty related stuff should between then .. fi.

This should solve the problem.


Peter.
There's always a solution
Bernie Vande Griend
Respected Contributor

Re: Scripting issue where it wants a tty

used expect to interact with the binary
Ye who thinks he has a lot to say, probably shouldn't.