Scenario: Source host (Solaris 5.10, KSH), im trying to run the following script named sample.ksh on source
#!/bin/ksh
set -x
Rediscover ()
{
ssh user@hostB ./scripts/test.ksh
}
Rediscover
exit 0
Remote Host: Linux (bash shell), i have the following script called test.ksh
#!/bin/bash -x
resize
stty -a
exit
Issue: I can run the test.ksh without any issues directly on Linux host but when i try to run it remotely from solaris i am getting the follwoing error.
root@hostA# ./sample.ksh
+ Rediscover
+ resize
resize: can't open terminal /dev/tty
+ stty -a
stty: standard input: Invalid argument
+ exit
+ exit 0
Why can't i see the output of resize and stty -a remotely ??
SSH keys were setup from A to B