LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-02-2011, 03:43 PM   #1
Gortex
Member
 
Registered: Nov 2005
Location: Enid Ok
Distribution: ubuntu 64 , debian , fedora core , vista ultimate 64, Winows 7 64 ultimate :p
Posts: 219

Rep: Reputation: 30
Going Terminal...


I have a terminal thats of vt220 type.. Currently I have it set to spawn a C program as a shell.. If the user hits the f4 key it will rlogin to another computer that will start a different application for it. All this currently is working, but what happens is with the same $TERM on all machines ( checked to make sure it wasn't getting changed anywhere ) I lose my function keys.. When ever I hit one after I have made it though the 'rlogin' to the other computer (with the application running ) I get a rlogin disconnected message and redirected back to my original shell ( the C app i wrote ) on the original box. Anyone have any insight in to this. I have been pulling hair out by the hand fulls trying to debug this whole process. Any needed info ill post on request beings that I don't know what config etc.. etc.. would be useful.
 
Old 05-03-2011, 07:50 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Your jargonology seems confusing:
Quote:
I have a terminal thats of vt220 type.
You mean a big bulky piece of hardware with a screen and keyboard,... or a bit of software that makes a window on some host behave like one of the the above? If the latter, please identify it.

Quote:
I have it set to spawn a C program as a shell
Now, a terminal in and of itself is too stupid to do that. What is it that is really spawning a a process?

Quote:
what happens is with the same $TERM on all machines
Whoa... all what machines? So far you've only told us about a terminal and 'another computer'. What are the other machines? And 'rlogin'? Seriously?

So, your shell is used to invoke a rlogin, and pressing a function keys causes a logout? Function keys are programmable on VT200's. Is there something programmed into it that would cause that? What shell or application runs when you do the rlogin? Even an application can program the function keys. Could the application be doing that in your case?

Are you sure it has anything to do with the terminal? How else have you tried doing a rlogin to the same host?

--- rod.
 
Old 05-04-2011, 02:33 PM   #3
Gortex
Member
 
Registered: Nov 2005
Location: Enid Ok
Distribution: ubuntu 64 , debian , fedora core , vista ultimate 64, Winows 7 64 ultimate :p
Posts: 219

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by theNbomr View Post
Your jargonology seems confusing:

You mean a big bulky piece of hardware with a screen and keyboard,... or a bit of software that makes a window on some host behave like one of the the above? If the latter, please identify it.

Now, a terminal in and of itself is too stupid to do that. What is it that is really spawning a a process?

Whoa... all what machines? So far you've only told us about a terminal and 'another computer'. What are the other machines? And 'rlogin'? Seriously?

So, your shell is used to invoke a rlogin, and pressing a function keys causes a logout? Function keys are programmable on VT200's. Is there something programmed into it that would cause that? What shell or application runs when you do the rlogin? Even an application can program the function keys. Could the application be doing that in your case?

Are you sure it has anything to do with the terminal? How else have you tried doing a rlogin to the same host?

--- rod.
I just worked around the issue and solved it, but just to clarify what was going on here:

Its a time clock the proccess runs on Linuxbox1 spawned to /dev/ttyUSB0 ( we are using some serial over eathernet over usb devices lol yes seriously its called a rocket port and a net232 connector ) When a user punches in at the terminal there is some sub options that are avalable to them and some of them start a new proccess on another machine. so here is a map of what it all kind of looked like ( this is not of my design I was just told to fix it )

Terminal--- net 232 connecter ---- cat 5 ----- other net232 connecter ---- rocketport to - Linux box 1

now the user logs in and select one of those options we can add this to our layer of junk ( so all the above)
-- rlogin to linux box2 --- so yes the terminal is going though a lot of changes but yes it works now. as far as a terminal its a real dumb terminal ( adds 6k series ) not some make shift deal... I use agetty to spawn a proccess to the port its pluged in blah blah blah... you get the picture.

Like I said not how I would of done things, but it was in place before I started here and it got dropped in to my lap as such things always do

forgot to add the cherry on top... lol they use telnet for local logins............ Yeah...

Last edited by Gortex; 05-04-2011 at 02:34 PM.
 
  


Reply



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
not screen-blanking in terminal - what sets the idle timeout on monitor for terminal stardotstar Linux - Hardware 2 08-14-2011 05:46 AM
[SOLVED] Gnome terminal 2.1.0, centos 5 - how to 'find' text listed on terminal screen linuxquestions_forum_use Linux - Newbie 2 12-21-2010 08:35 PM
gnome-terminal:keyboard shortcut launches terminal with / directory default! deepclutch Linux - Desktop 1 06-21-2010 11:48 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:24 AM.

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