1833772 Members
2149 Online
110063 Solutions
New Discussion

dropping dtr/getty

 
SOLVED
Go to solution
Kenn Kantola
Advisor

dropping dtr/getty

I want to monitor dial in ports and drop dtr or reset the getty if a device has been inactive for so long. Is there a simple way to do this?
5 REPLIES 5
Jay Newman
Frequent Advisor
Solution

Re: dropping dtr/getty

If you were just interested in telnet sessions, you can use nettune to set the inactive timer for closing idle connections.
However, it appears you want to close off direct (tty) connections.
The best way I have heard of doing this, is to install idled (pronounced "idle-dee").
The author does not specify if it is shareware or freeware, but you can read up on it and download it from the following location:
http://www.darkwing.com/idled/

However:
Do you really want a port logged out due to inactivity, even if it has files or databases open?
"Success is defined by getting up one more time than you fall down."
Kenn Kantola
Advisor

Re: dropping dtr/getty

yes, these are direct connect modems. What they do on the current system is call a UNIX untility from the database programs after they close the files. So they will do the same on the HP, I just need to give them a command to execute, and I didn't want them using kills on pids. Thanks.
Jay Newman
Frequent Advisor

Re: dropping dtr/getty

You asked for a simple way to do it; if issuing a kill is not an option, I think you have non-simple options.
You are looking for inactivity on a device rather than a process, right?
And it is currently allocated/open by a process which you do not want killed.

If you can determine that the device is idle by some other means, you can issue the command
stty 0
"Success is defined by getting up one more time than you fall down."
Kenn Kantola
Advisor

Re: dropping dtr/getty

Yes, on the device. I did download idled and am looking at that, but the stty command looks like it will work very well. Thanks for the help.
Jay Newman
Frequent Advisor

Re: dropping dtr/getty

Glad I could help.

By the way, have you read the forum's notes on assigning points to answers?

It's not mandatory, but very helpful to the other forum users if you do.


"Success is defined by getting up one more time than you fall down."