nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

How to run script when users logouts

This is a discussion on How to run script when users logouts within the Shell scripting forums, part of the Development/Scripting category; Hi I would like to run some in house task every time uses logout. Any idea how to achieve this ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 31-08-2005, 11:16 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 5
tom is on a distinguished road
Default How to run script when users logouts

Hi

I would like to run some in house task every time uses logout. Any idea how to achieve this effect?

Thanks!
Reply With Quote
  #2 (permalink)  
Old 31-08-2005, 11:42 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
OS: Debian GNU/Linux
Posts: 506
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 7
monk has a spectacular aura about monk has a spectacular aura about
Default

If you are using bash then you can call your script from file called .bash_logout. Under C shell it is .logout file.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
different php.ini for different virtual users kasimani Web servers 1 15-04-2008 02:17 PM
let users change password using perl script? james bond Getting started tutorials 9 24-05-2007 10:32 PM
Script to add users to multiple servers. deepakhg Shell scripting 0 17-03-2007 03:02 AM
want a script keep backup of all users history. ricc Shell scripting 3 26-08-2005 12:30 AM
shell script for finding users not logged on for last 10 day ganes Shell scripting 4 06-07-2005 11:01 AM


All times are GMT +5.5. The time now is 03:27 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38