Mag Gam on 1 Sep 2007 04:40:51 -0000 |
I am in the process of writing a shell script to take history file (fc -l) and backup it up, while appending it. My strategy is, once the user exits out of his shell, i will dump the history into a file by using a trap() with EXIT. The file will be appended by the username... (ie, username.history.date My question is, if a user changes his shell from bash to ksh to tcsh, I am not able to get the output because I have my trap + exit to look at $SHELL. Is there any way to disable a user to log into a different shell? ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|