telnet script
I have built a telnet script to originate from a terminal, login via telnet to a remote system, a intiate an Xterm program.
Here is roughly how it looks...
xhost +
(echo "login"
sleep 2
echo "password"
echo "export DISPLAY X.X.X.X:0.0"
echo ' Xterm program...blah, blah &'
sleep 10) | telnet X.X.X.X
This telnets fine. It logs in fine. The sleep 10 gives it enough time to initiate the Xterm program. It is my understanding that the "&" should allow the program to operate even after telnet logout.
however, after the sleep 10, the telnet session closes, and the Xterm program along with it. Can anybody tell me if this is a script problem, or a telnet problem?
Thanks...
|