The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Recording a UNIX Session amitkhiare Shell Programming and Scripting 0 01-13-2008 03:00 AM
Unix Telnet session mlucas UNIX for Dummies Questions & Answers 2 08-17-2006 11:26 AM
sqlplus session being able to see unix variables session within a script 435 Gavea Shell Programming and Scripting 2 07-03-2006 11:11 AM
is it possible to ssh within an ssh session? noamkrief UNIX for Dummies Questions & Answers 4 11-14-2003 05:16 PM
Unix login session and Password krishna UNIX for Advanced & Expert Users 1 11-14-2003 05:44 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-16-2006
thomaso thomaso is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 2
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 (permalink)  
Old 03-16-2006
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,409
Perhaps you have $TMOUT set. Check the man page for your shell.
  #3 (permalink)  
Old 03-17-2006
Klashxx's Avatar
Klashxx Klashxx is offline Forum Advisor  
HP-UX/Linux/Oracle
  
 

Join Date: Feb 2006
Location: Almerķa, Spain
Posts: 393
Just type more and your shell will survive.
  #4 (permalink)  
Old 03-17-2006
buffoonix buffoonix is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 145
have a command running that constantly produces output like
e.g. watch, sar, vmstat, or a one-line while loop
  #5 (permalink)  
Old 03-17-2006
thomaso thomaso is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 2
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 (permalink)  
Old 03-17-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0