timeout


 
Thread Tools Search this Thread
Operating Systems HP-UX timeout
# 1  
Old 01-27-2004
timeout

How can I kick a user out after being idle for a certain amount of time, would prefer not to use scripts, will TMOUT work on HP-UX?
# 2  
Old 01-27-2004
This varies from shell to shell. TMOUT works for ksh and the posix shell. If you have other shells in use, you need to check the docs for those shells.
# 3  
Old 01-27-2004
Depends on what shell a user is using. For example, ksh and bash support TMOUT, csh supports autologout, Bourne shell
supports neither.

Also setting TMOUT and the like may interfer with certain long
running processes which do not require much user interaction.

Do a Google search for "idleout" and/or "logmon".

- Finnbarr
# 4  
Old 01-28-2004
well what does TMOUT consider "idle"
I dont want weblogic commming down if it 's considered "idle"?
# 5  
Old 02-24-2004
TMOUT is working with HP-UX (ksh and POSIX) .
you just need to set it in the user profile

TMOUT=90 (for example).
# 6  
Old 02-27-2004
TMOUT should be in /etc/profile and made read-only.
Code:
TMOUT=14400
readonly TMOUT
export TMOUT

90 is an unrealistically low value. IMO.

TMOUT will NOT affect the user if they are "inside" a program.
For example, some users here leave their sessions in sqlplus overnight just so TMOUT doesn't clobber their session -- a violation of our security policy. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Read timeout

I saw several thread for this issue but none addresses my issue. I have tried read -t but the result is read bad options My requirement is 1. Ask for input 2. If input = y or no input in 60 seconds then continue processing else exit fi Kindly consider this urgent. (8 Replies)
Discussion started by: rprasad
8 Replies

2. Shell Programming and Scripting

Expect timeout

Hello, I'm doing a simple script with expect (a telnet which works without user/pass), and I want to put a condition if timeout happens, then to print a message, but it doesn't work. The script looks like below: #!/usr/bin/expect log_user 0 set timeout 10 spawn telnet IP PORT send... (3 Replies)
Discussion started by: rainbow19
3 Replies

3. Shell Programming and Scripting

Setting a Timeout

Hi I'm writing a script which based on a condition, restarts a set of servers. The problem I'm facing is, say if one of the server is down, my script stops there and fails to proceed. How can I ensure to set a timeout value on that script, so when the server is not reachable, the script should... (2 Replies)
Discussion started by: mathbalaji
2 Replies

4. Programming

using libpcap with timeout

I want to write a small application using Libpcap in C on Linux. Currently, it starts to sniff and waits for the packets. But that's not what I need actually. I want it to wait for N seconds and then stop listening. (I think there's something wrong with my usage of 'pcap_open_live'...) How... (0 Replies)
Discussion started by: xyzt
0 Replies

5. Shell Programming and Scripting

how to set timeout?

When I run a script where the 1st parameter is ip address ftp -n -i -v $1 I hang here if the ip is wrong how to set a timeout something like if (20s not complete "ftp -n -i -v $1") then echo "error" fi Thanks a lot. (14 Replies)
Discussion started by: uativan
14 Replies

6. Shell Programming and Scripting

Can we timeout cd command

Hi All, I want to know whether we can timeout the cd command in unix. If we can how is it implemented? Suppose cd command hangs can we timeout the command. Please help (9 Replies)
Discussion started by: dipashre
9 Replies

7. UNIX for Advanced & Expert Users

SCP Timeout?

Hello, I was wondering is there a way for SCP to shorten the timeout to fail when it attempts to connect a host that is down. Seems like it takes about a minute or so for scp to timeout. This is on a AIX 5.3 box. I saw someone suggest use -o ConnectTimeout but the scp I use doesn't have that... (1 Reply)
Discussion started by: benefactr
1 Replies

8. Red Hat

RPC Timeout

I have a RHEL 2.1 machine that I am trying to get to mount a remote nfs filesystem. Both servers have 2 network interfaces. My linux machine can mount the filesystem through one interface with no problems but if I switch over and try to mount it through the other interface using a totally... (1 Reply)
Discussion started by: darren.wyatt
1 Replies

9. Solaris

About the Timeout

Hello everyone I am a new one,I want to know how to get the solaris force the loginer out if he do not in a time thanks (4 Replies)
Discussion started by: lyh003473
4 Replies

10. UNIX for Dummies Questions & Answers

Timeout period

How do i increase the timeout period of a telnet session? (4 Replies)
Discussion started by: Nadeem Mistry
4 Replies
Login or Register to Ask a Question