logout script common for both Mac and Linux?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users logout script common for both Mac and Linux?
# 1  
Old 06-27-2008
logout script common for both Mac and Linux?

hi all ,

I need to run few commands on user logout.
A non-root user should be able to edit that script which runs after logout.
I need to make the solution both all Linux versions as well as
Mac.

Can any body help me in this regard.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SCO

Logout automatically when exiting a script

Hi, I am using SCO Unix. I write a script to execute a program by calling exec program The script will check the program is still there or not, if not, then it will exit the script by calling exit So if I press DEL to quit the program, the script will exit, but it will logout... (6 Replies)
Discussion started by: dannychan
6 Replies

2. Shell Programming and Scripting

Login, excute command, logout Script Help

Good Evening all, After spending the last week or so reading many posts I decided to register and join in. This is my first post on the forum so please forgive me as im new to this, Im after some help in throwing together a quick basic script without using expect to change the password on several... (4 Replies)
Discussion started by: mutley2202
4 Replies

3. UNIX for Advanced & Expert Users

Telnet from shell script , further need to logout if log in not authenticate

Using unix shell script file I need to telnet to a IP further send a command to the telnet IP and get the response to a file with out using "expect" utility and I have achieved this by below command. (sleep 3; echo admin; sleep 3; echo mypass; sleep 5;echo "show status-list"; sleep 5; echo... (3 Replies)
Discussion started by: raghunath Rao
3 Replies

4. Shell Programming and Scripting

How to run script on logout ?

Hi Everybody, I want to run my own script on logout , i can use .bash_logout file... problem is this will work only for that particular user... i want to know the common file... so that script wil run for all the user... 2. How to run script on Shutdown ? Thanks in advance Anitha (4 Replies)
Discussion started by: anisn2002
4 Replies

5. Shell Programming and Scripting

Logout script - delete a file

Good evening you scripting guru's! I have the following script to delete a file on logout of a Mac : find . –name com.apple.sidebarlists.plist –exec rm -f {} \; It works fine in terminal and when logging out. However, it takes forever to run the script at logout...A minute and a half. ... (12 Replies)
Discussion started by: AGGreenLinux
12 Replies

6. OS X (Apple)

Login/Logout script

Dear readers I use SnowLeopard 10.6.2 and need to do some special tasks at login and logout of an sepcific user. My problem is, how do I send a string "login" respectively "logout" from computer "A", where the login/logout script runs, to computer "B" where some other tasks need to be done. ... (3 Replies)
Discussion started by: tthaler
3 Replies

7. UNIX for Dummies Questions & Answers

run a script at logout

hi all , Need to a run a program on user logout (using GNOME log screen). Tried using .bash_logout for this purpose but that doesnt seem to work. Similar to .bash_logout is there any script /program which a normal user (other than root ) can edit and run it on their logout? can anybody... (0 Replies)
Discussion started by: harsha10
0 Replies

8. Shell Programming and Scripting

run a script on logout by a non-root user

hi , i need to run a script that delete files when i logout as a user other than root user . I have tried out using .bash_logout but that doesnt seem to work , so any alternative for this to be done. Thanks in advance, Harsha (6 Replies)
Discussion started by: harsha10
6 Replies

9. UNIX for Dummies Questions & Answers

Login and logout script

Hi all I know ho I can run a script when a user logs in, viz using the .login or .profile file, however what can I use to run a script when a user logouts ? Thanks J :confused: (1 Reply)
Discussion started by: jhansrod
1 Replies

10. UNIX for Dummies Questions & Answers

logout/shutdown script

I am running JDictd (http://www.informatik.uni-leipzig.de/~duc/Java/JDictd/) from tcsh in Terminal on Mac OS X (:=Darwin=FreeBSD/Mach). I am trying to get it to exit cleanly silently upon Mac OS X system shutdown. My idea was that if there was a logout script in FreeBSD (basically a script... (1 Reply)
Discussion started by: ropers
1 Replies
Login or Register to Ask a Question
GNOME-SESSION-SAVE(1)					      General Commands Manual					     GNOME-SESSION-SAVE(1)

NAME
gnome-session-save - Saves or ends the current GNOME session SYNOPSIS
gnome-session-save [--logout] [--force-logout] [--logout-dialog] [--shutdown-dialog] [--gui] [--kill [--silent]] DESCRIPTION
gnome-session-save can be used from a GNOME session to save a snapshot of the currently running applications. This session will be later restored at your next GNOME session. The --gui option will report errors in dialog boxes instead of printing to stderr. If called with the --logout option, the current GNOME session will be ended, unless logging out has been inhibited by an application. The --force-logout option can be used to end the session regardless of the inhibition state. When the --logout-dialog option is given, the standard dialog displaying logout options is displayed. When --shutdown-dialog option is given, the standard dialog displaying shutdown options is displayed. The --kill and --silent options are deprecated. The --kill option is equivalent to the --logout-dialog option. If --silent is used with --kill, then it will behave as if --logout was used. The session is not saved when gnome-session-save is called with any of the options ending the session. SEE ALSO
gnome-session(1) BUGS
If you find bugs in the gnome-session-save program, please report these on http://bugzilla.gnome.org. GNOME GNOME-SESSION-SAVE(1)