Current scenario:I am trying to run Unix shell script from a solaris 5.10 box, within the script one of the tasks is to ssh to another Linux host (ssh-key pair already setup) and run a set of commands.Problem:While the script runs fine,all the commands that were run in the remote box were not showing up properly in my solaris terminal. I've used set -x to show all the steps the script is doing. All the remote steps for some reason start printing in the middle of my screen and sometimes if the commands ran on remote server were long it wont show me the full command its running. I have the widest monitor and my terminal width is not an issue. Is there compatibility issue with default terminal widths between my solaris and Linux boxes ?? Hope my problem is clear.
How to prevent garbled screen display while running scripts on remote hosts?
shell script;terminal;stty