It is currently Tue, 07 Dec 2021 03:21:03 GMT



 
Author Message
 root logout or exit script
i've tried creating the following commands as a .logout script for root(ksh):

clear
banner "system name"
exit

can anyone tell me why the script won't execute ?



 Wed, 29 Dec 2004 03:04:56 GMT   
 root logout or exit script

mad ATARI user alternate wrote:

~/.logout will get executed upon termination of the csh/tcsh login shell.
For ksh, it is not at all accesed. Upon termination for ksh, any command
(or script) specified using the command:   trap "command" 0

--

Nithyanand.
Siemens, Bangalore, India.
(Opinions expressed are my own and do not reflect the opinions of my employer,
SIEMENS)



 Wed, 29 Dec 2004 03:14:45 GMT   
 root logout or exit script
so I would have to put 'trap "command" 0' in my .login file ?


 Thu, 30 Dec 2004 20:59:04 GMT   
 
   [ 3 post ] 

Similar Threads

1. Changing the logout script for exit button

2. nohup shell script exits after logout (bash)

3. kornshell logout script for root (UNIXWARE 4.2)

4. kornshell logout script for root (UNIXWARE 4.2)

5. CDE exit-logout difference

6. ***How can I exit program and logout at once?***

7. How to auto-logout after exiting XWindows/desktop

8. Calling logout or exit within PERL

9. logout/exit/ctrlD

10. logout/exit/ctrlD


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software