A Developer's Diary

Showing posts with label HPUX. Show all posts
Showing posts with label HPUX. Show all posts

Feb 26, 2009

How to find processes using a file on HPUX

I got the following error while I was trying to remove (forcefully) some of the files on HPUX
"rm: filename not removed. Text file busy"
This was happening as the files were used by one of the running process and were in use.

Use the following command to find out the process using the files.

fuser <filename>


The command displays the pid of the process. You can kill the process using the pid and remove the file successfully.

Read more ...

May 6, 2008

Installing and Configuring Software/Patches on HPUX

The information on individual patches in a patch bundle can be obtained by using

/usr/sbin/swlist -s /temp/depot_name -l product -a readme patch_name


Patch and software can be installed using the following command. This will open up an interactive interface where you have to select and install the software.

/usr/sbin/swinstall -s /directory/depot –x autoreboot=true

Read more ...