Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


Closed Thread
  Search this Thread
Old 07-24-2002, 12:38 PM   #1
LQ Newbie
Registered: Jul 2002
Posts: 12

Rep: Reputation: 0
telnet script

I have built a telnet script to originate from a terminal, login via telnet to a remote system, to 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?

If the controlling TTY is logging out after the sleep, how can I maintain the Xterm program/window?

Old 07-24-2002, 04:07 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I don't remember how is it with telnet, but it may be an Xterm problem. It closes after the program you gave it to run closes.
The above sentence doesn't look good, but I hope you understand what I mean.
Old 07-24-2002, 09:47 PM   #3
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Please do not double post.

Closing thread.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can we telnet the system using shell script suchi_s Programming 18 02-18-2005 03:43 PM
telnet script help GUIPenguin Linux - General 2 01-16-2005 03:48 PM
Telnet script pirra Programming 1 12-29-2004 04:04 PM
Telnet script?? mike400hp Linux - Newbie 6 08-22-2003 04:41 PM
telnet script tn1681 Linux - General 3 07-25-2002 11:09 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration