When a login shell exits, bash reads and executes commands from the file ~/.bash_logout, if it exists.
I just found that contract to what is said in man page:
When a login shell exits, bash reads and executes commands from the file ~/.bash_logout, if it exists.
My ~/.bash_logout is not invoked afer I logoff bash from any xterm window. The window can be either launch by solaris CDE or by command "xterm &".
Yes, both window launched by solaris CDE or by command "xterm &" are not login shells. The 'ps -f' will yield:
UID PID PPID C STIME TTY TIME CMD tong 23496 23495 2 15:51:10 pts/8 0:00 bash
Use -ls switch of xterm if you want, The 'ps -f' will yield:
$ ps -f UID PID PPID C STIME TTY TIME CMD tong 23573 23572 2 15:53:48 pts/7 0:00 -bash
Note that "-" before bash!
![]() |
!! |
Add the "-ls" switch for all xterms in home session.
pkgadd -d foo-1.0
The pkgadd command must be run as root.
.gz files should be ungzipped first.
Do NOT put a ., ./, or the directory name in front of the file name in pkgadd!
the actual install location would depend on the package.
use pkgrm and follow the prompts.
Use the -R option of the pkgadd command to install the Solaris packages in a non-default location
-R root_path Define the full path name of a directory to use as the root_path. All files, including package system information files, are relo- cated to a directory tree starting in the specified root_path. The root_path may be specified when installing to a client from a server (for example, /export/root/client1).
documented on: Fri 08-13-99