Cynosure.X International LLC

: :

Add Comment | Related Links | TrackBack
Related Content

TimeOutNotify.sh (GPL)

TimeOutNotify.sh is a background process that notifies you when a time out is about to occur. I decided to write this script when one of the WebHostingBuzz shared servers keeps logging me out of the shell account after 30 minutes. Even though the system does save my file, if I'm in the middle of an edit, I'd preferred to be prepared for a spontaneous log out. So this script has been written to notify me after 25 minutes that my session is about to expire. You can, of course, use this script to measure other time outs.

You can call this script and put it in the background by putting the following line in your ".bashrc" (if you are using BASH):

TimeOutNotify.sh &

In case you want to do a manual log out before the time is up, you'll want to add the following line to ".bash_logout". (KillProc.sh is a GPL shell script that you can download from this site as well.)

KillProc.sh sleep

Currently, the script is set up for a time out at 30 minutes. It notifies you 5 minutes before the time out. You can change both of these variables at the beginning of the script.

TimeOutNotify.sh is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.

Attached File: TimeOutNotify.sh (548 B)

Chieh Cheng
Tue, 13 Nov 2007 21:02:34 +0000

When you install TimeOutNotify.sh in your startup script, you should check to see if it is an interactive shell or not. It should only be install in an interactive shell login session. See "rsync errors" for more details on why and how to do that.

Chieh Cheng
Fri, 14 Dec 2007 11:07:11 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Related Links

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 1 + 5?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

235 Users Online

Hacking Digital Cameras
Fun for Photographers



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.