Tag: bash

Installing bash on HP-UX

Go to http://hpux.connect.org.uk/ and download bash and dependencies

Copy the packages to the HP-UX server and expand the packages

root@hp-ux:/root# cd /tmp/bash_hpux
root@hp-ux:/tmp/bash_hpux# gunzip *

The site showed that I needed three dependencies and the package for bash

root@hp-ux:/tmp/bash_hpux# ls -l
total 20256
-rw-r—– 1 emerson mrhuxbr 2539738 Jul 5 16:32 bash-4.2.045-ia64-11.31.depot.gz
-rw-r—– 1 emerson mrhuxbr 5639993 Jul 5 16:32 gettext-
-rw-r—– 1 emerson mrhuxbr 1724566 Jul 5 16:33 libiconv-1.14-ia64-11.31.depot.gz
-rw-r—– 1 emerson mrhuxbr 448666 Jul 5 16:33 termcap-1.3.1-ia64-11.31.depot.gz

I installed all four packages

root@hp-ux:/tmp/bash_hpux# swinstall -s /tmp/bash_hpux/bash-4.2.045-ia64-11.31.depot
root@hp-ux:/tmp/bash_hpux# swinstall -s /tmp/bash_hpux/gettext-
root@hp-ux:/tmp/bash_hpux# swinstall -s /tmp/bash_hpux/libiconv-1.14-ia64-11.31.depot
root@hp-ux:/tmp/bash_hpux# swinstall -s /tmp/bash_hpux/termcap-1.3.1-ia64-11.31.depot

Although it is not necessary, I made a link in /usr/bin pointing to the bash binary

root@hp-ux:/tmp/bash_hpux# ln -s /usr/local/bin/bash /usr/bin/bash

Linux – Adding timestamp to history

root@linux:~ # history
2 2013-03-18 15:08:24 vi df_mon.cfg
3 2013-03-18 15:08:38 /var/opt/OV/bin/instrumentation/UXMONbroker -d psmon
4 2013-03-18 15:08:41 ps -ef |grep -i scopeux
5 2013-03-18 15:09:11 perfstat

To have the time and date of when the command is issued when using the bash shell, add the following statement to your .bashrc file