![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|