unix session


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting unix session
# 1  
Old 03-16-2006
unix session

Hi,

we have our shell sessions timing out after every 5 minutes , if there is no activity.

Is there any way i can keep my session for longer than 5 minutes or untill i end the session.

may be any dummy program that runs background and doesn't take up lot of resources or any ideas.

Thanks for your time
Thomas.
# 2  
Old 03-16-2006
Perhaps you have $TMOUT set. Check the man page for your shell.
# 3  
Old 03-17-2006
Just type more and your shell will survive.
# 4  
Old 03-17-2006
have a command running that constantly produces output like
e.g. watch, sar, vmstat, or a one-line while loop
# 5  
Old 03-17-2006
Thanks for your suggestions,

But when i try vmstat to run for every 4 minutes for next 8 hrs in & , i couldn't keep the shell session from timing out, I think this is probably set by our admin as a standard, i just hate to re -login everytime it sessions out.

when you said one line while loop i didn't get it. .. can you please elaborate on this..


Thomas.
# 6  
Old 03-17-2006
Quote:
Originally Posted by thomaso
when you said one line while loop i didn't get it. .. can you please elaborate on this..
A standard one liner for keeping sessions alive:
Code:
while true; do echo ""; sleep 300; done &

You can fiddle around with the length of the sleep command depending on the timeout interval that you have set.
# 7  
Old 03-20-2006
Shell Timeout

YGOR's correct. If your shell is timing out you need to set the TMOUT env variable. TMOUT=60;export TMOUT should do it. You can check it by using
echo $TMOUT or env | grep -i TMOUT.

Mr-synapse
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unix scripting and screen session

hi, i am on AIX 5.3. I would like to write scripts that initiate or reattach to a screen session to run some commands either from unix or Universe. Can anyone assist me with a with a wuick primer on this. I can attach or initiate a screen manually and then run the commands but I would like to... (6 Replies)
Discussion started by: dustytina
6 Replies

2. Shell Programming and Scripting

How to Capture a Unix Terminal Session?

Hi All, I want to capture all the operations performed in the terminal. So to achieve this I used “script” command. This works as I expected. But this command captures all the standard output which is redirected to terminal. For example if i “tail” a file, even the tail output is getting... (2 Replies)
Discussion started by: kalpeer
2 Replies

3. Shell Programming and Scripting

passing keycodes to a unix session

Hi - i have an unix application which receives user input and prints certain details. the problem is i am trying to automate it and i don't know how to pass a list of commands to the application using shell script. here documents don't work as well - if i use the here document when i am opening... (3 Replies)
Discussion started by: azzazin007
3 Replies

4. AIX

Unix session timeout?

We recently moved servers to a new data center, and now we're experiencing user sessions timing out after non-activity. We didnt experience this before, or know of any timeout settings that may have been changed. Any things I can check out on the server? (3 Replies)
Discussion started by: NycUnxer
3 Replies

5. Solaris

I am not able to login in gnome session and java session in Sun solaris 9& 10

I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies

6. Shell Programming and Scripting

Recording a UNIX Session

Hi All, I have a question regarding recording the unix sessions. I know the recording can be done using script comman, however i want to create a daily file of unix session. Also when i open multiple sessions how will the script multiple session. Please suggest some solutions also which file... (0 Replies)
Discussion started by: amitkhiare
0 Replies

7. UNIX for Dummies Questions & Answers

Unix Telnet session

Hi Is there any way whilst in a telnet session you can view your client machine name that you are using to connect to the Unix box ? :eek: (2 Replies)
Discussion started by: mlucas
2 Replies

8. Shell Programming and Scripting

sqlplus session being able to see unix variables session within a script

Hi there. How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly. sqlplus << EOF user1@db1/pass1 BEGIN PACKAGE1.perform_updates($1,$2,$3); END; EOF Thanks in advance, Abrahao. (2 Replies)
Discussion started by: 435 Gavea
2 Replies

9. UNIX for Advanced & Expert Users

Unix login session and Password

Hi All, I've login to Unix using login name guest and I'm working on it, I need another session to run some script hence tried to login but password invalid it says here my question is : Since I'm in working in one session can I set the password without knowing old password? is there any... (1 Reply)
Discussion started by: krishna
1 Replies
Login or Register to Ask a Question