Operating System - HP-UX
1753531 Members
5213 Online
108795 Solutions
New Discussion юеВ

not a terminal stty not a typewriter how to get rid of it

 
SOLVED
Go to solution
vishal gangrade
Occasional Advisor

not a terminal stty not a typewriter how to get rid of it

I am running a simple script which has to run other 3 scripts which are on different servers using SSH then i am copyng the data from all the 4 servers including the server from i am running the script... altough data is getting copied but when it swithes to another server it is showing the above mentioned error....please provide some info to get rid of it..
10 REPLIES 10
Hakki Aydin Ucar
Honored Contributor

Re: not a terminal stty not a typewriter how to get rid of it

vishal gangrade
Occasional Advisor

Re: not a terminal stty not a typewriter how to get rid of it

i am not using any STTY command in that and i just dont want to modify .profile....i just want to know will it affect .profile or any other files if i will run it again and again..
Laurent Menase
Honored Contributor
Solution

Re: not a terminal stty not a typewriter how to get rid of it

there are indeed the answer provided in the thread but you can also use -t option

$ ssh -t laurent@localhost ttytype
vt100
Connection to localhost closed.
$ ssh laurent@localhost ttytype
ttytype: couldn't open /dev/tty for reading
$

like that your ssh is executed on a tty which avoid all tty errors
Laurent Menase
Honored Contributor

Re: not a terminal stty not a typewriter how to get rid of it

just a remark, -t option uses a pty on the remote system, so it consume more ressource which can be limited, than without -t where the socket is use without a pty.
vishal gangrade
Occasional Advisor

Re: not a terminal stty not a typewriter how to get rid of it

Now i used -t option with ttytype, thats true it is not showing the error but now it is not running the scripts on other 3 server... just it is showing the "vt100 Connection to 96.110.168.54 closed" and i am getting output from only server from where i am running it...

i am running this..
ssh -t host@ip ttytype "path/.ksh file"

Laurent Menase
Honored Contributor

Re: not a terminal stty not a typewriter how to get rid of it

add a set -x to your script to see what is executed and is not executed.
vishal gangrade
Occasional Advisor

Re: not a terminal stty not a typewriter how to get rid of it

i checked it is not running the other 3 scripts..even some files which has to be created there are not creating..
Earl_Crowder
Trusted Contributor

Re: not a terminal stty not a typewriter how to get rid of it

Remove "ttytype" from your command string. It was used to show the effect of the '-t' option.
vishal gangrade
Occasional Advisor

Re: not a terminal stty not a typewriter how to get rid of it

Thank you to all for your support and information. Now my script is running fine..:)