Computing.Net > Forums > Unix > How to set dial-in a/c's idle time?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to set dial-in a/c's idle time?

Reply to Message Icon

Name: Jack
Date: July 20, 2003 at 20:55:08 Pacific
OS: HP-UX 10
CPU/Ram: HP
Comment:

Hi,

I have a modem on HP-UX 10 and users can logon by dial-in. My problem is: I want to set an idle time for the user who is logon from the modem. I can set an ENV TMOUT=xxx inside $HOME/.profile to do that but there is a group of users who are sharing the same home directory using the same .profile and I can't set the TMOUT to apply all of them but only want to apply on one user in that group who is using the modem for logon. How can I do that? Shell script or AT commands? Any hints?

Jack



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: July 20, 2003 at 21:26:15 Pacific
Reply:

Does the output of the command tty identify a modem user ? A telnet login looks like

$ tty
/dev/pts/ta

I could see conditional checking in a case statement something like:

case `tty` in
/dev/pts/* ) echo "telnet" ;;
/dev/cua* | /dev/cul* | /dev/ttyd* | /dev/tty* ) TMOUT=xxx ; export TMOUT ;;
esac


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: How to set dial-in a/c's idle time?

How to set environment variable www.computing.net/answers/unix/how-to-set-environment-variable/5689.html

How to set screen refresh rate in Digital Unix V4.0 www.computing.net/answers/unix/how-to-set-screen-refresh-rate-in-digital-unix-v40/562.html

How to run script remotely in a silent m www.computing.net/answers/unix/how-to-run-script-remotely-in-a-silent-m/2168.html