exec command - different output

July 15, 2017 at 01:06:45
Specs: Solaris 10
Hi Guys,

I am trying to to execute the below script in two different machines.


#!/bin/ksh
###############################################################################
# File : pause
###############################################################################
print "\nPlease Press \033[4m<ENTER>\033[0m to continue\c"
read answer

Its resulting the below output.

prem@host1:exec pause 2>> /tmp/prem.log

Please Press <ENTER> to continueConnection to host1 closed.
prem@host1:


prem@host2:exec pause 2>> /tmp/prem.log

Please Press <ENTER> to continue
Connection to host2 closed.
prem@host2:

When I execute the command in host1 its not waiting for input. Any idea friends?

Thanks
Prem


See More: exec command - different output

Reply ↓  Report •
Related Solutions


Ask Question