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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
What happens when user logout? yhacks Linux 1 05-15-2008 11:20 PM
.logout sharif SUN Solaris 3 12-24-2007 01:08 AM
logout zam UNIX for Dummies Questions & Answers 2 12-28-2006 03:23 PM
How do you logout from a session? Heron Linux 4 04-25-2005 10:11 AM
logout command raguramtgr UNIX for Dummies Questions & Answers 6 04-09-2004 12:36 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-27-2007
Registered User
 

Join Date: Apr 2007
Posts: 35
.logout help

We have an application that uses the csh shell as the default. We can not change this as when we upgrade it will change back to csh. We have several people that log in with this id. I would like to create a .logout exit script to audit what transactions were performed, termal, etc.

Does anyone have an example of a .logout script doing this or have another idea how this could be done.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-30-2007
Registered User
 

Join Date: Apr 2007
Posts: 35
Does anyone have an idea?
Reply With Quote
  #3 (permalink)  
Old 04-30-2007
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,502
Please read the rules, specifically:

(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post or send a private message where your goal is to get an answer more quickly.
Reply With Quote
  #4 (permalink)  
Old 05-10-2007
Registered User
 

Join Date: Apr 2007
Posts: 35
Does anyone know how to delete or clear the csh history. When people log out I would like the history to be copied to a file along with some other infomation about the connection. However when I do this the history goes back several days so it seems like the last person that logged out did more than they did.

So I would like to copy the history then clear or remove the history. That way when the next person logs in they will start off with a clean slate.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0