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
minus sign trichyselva UNIX for Dummies Questions & Answers 2 03-03-2008 11:00 AM
Searching for + sign in a string using awk satyajit2512 Shell Programming and Scripting 5 01-11-2008 04:30 AM
(+ sign) Unexpected arithmetic expr script interpretation Birdi6022 UNIX for Dummies Questions & Answers 9 08-11-2007 11:28 AM
Meaning of % sign sokash Shell Programming and Scripting 2 06-09-2006 12:30 PM
Replace $ sign within a file using Vi editor dtonse HP-UX 1 05-10-2006 07:48 AM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-17-2006
Glider Glider is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 1
Sign on/Sign off logging script

I'd like to make a script that I can execute every time I sign on to my linux box that keeps track of the time and allows to me to add a remark to a file. So basically once I log in, I run the script, and it outputs the date and time to a text file (log.txt). But that isn't my problem.

I need to know how to make it so once i've executed the script in a session, it won't allow me to execute it twice until i've run a sign out script. I'd like it to say something along the lines of "Sorry, you are already signed in!" if i've already run the sign in script.

Then, I need to know what to add to the sign OUT script in order to make it go back to normal the normal signed out state.

I don't know if this makes any sense, but any input would be appreciated! I'll be checking the thread to answer any questions as often as possible. Thanks.
 

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 01:39 AM.


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