home *** CD-ROM | disk | FTP | other *** search
- From: hansl@hpuamsa.neth.hp.com (Hans Linschooten PSO)
- Date: Tue, 18 Aug 1992 16:56:29 GMT
- Subject: Re: inode to filename
- Message-ID: <28510313@hpuamsa.neth.hp.com>
- Organization: HP-Sales Office-The Netherlands
- Path: sparky!uunet!pmafire!mica.inel.gov!ux1!news.byu.edu!eff!sol.ctr.columbia.edu!usc!sdd.hp.com!hpscdc!hplextra!hpcc05!hpbbn!hpuamsa!hansl
- Newsgroups: comp.sys.hp
- References: <1992Aug06.172513.4063@CS.ORST.EDU>
- Lines: 94
-
- And how about fuser and option -k, to kill all processes?
- Not only files, but also filesystems (or block special devices).
-
- This you can find in man 1m fuser in HP-UX.
-
- ----------------------------------
-
- fuser(1M) fuser(1M)
-
-
-
-
- NAME
- fuser, cfuser - list process IDs of all processes that have file open
-
- SYNOPSIS
- /etc/fuser [-ku] files [-] [[-ku] files]
-
- /etc/cfuser [-ku] files [-] [[-ku] files]
-
- DESCRIPTION
- fuser lists the process IDs of the processes which have file open.
- For block special devices, all processes using any file on that device
- are listed. The process ID is followed by c if the process is using
- the file as its current directory or p if using the file as its root
- directory.
-
- If the -u option is specified, the login name (in parentheses) also
- follows the process ID. In addition, if the -k option is specified,
- the SIGKILL signal is sent to each process. Only users with
- appropriate privileges can terminate another user's process (see
- kill(2)). Options can be respecified between groups of files. The
- new set of options replaces the old set, with a lone dash canceling
- any options currently in force.
-
- The process IDs are printed as a single line on the standard output,
- separated by spaces and terminated with a single new line. All other
- output is written on standard error.
-
- In the HP Clustered environment, cfuser identifies processes running
- on any node in the HP Cluster using a file or file structure. A
- separate report is produced for each member of the cluster. Each
- report is preceded by the cluster member's name.
-
- EXAMPLES
- fuser -ku /dev/dsk/1s?
- if typed by a user with appropriate privileges, terminates
- all processes that are preventing disk drive 1 from being
- unmounted, listing the process ID and login name of each
- process being killed.
-
- fuser -u /etc/passwd
- lists process IDs and login names of processes that have the
- password file open.
-
- fuser -ku /dev/dsk/1s? -u /etc/passwd
- if typed by a user with appropriate privileges, combines
- both of the above examples into a single command line.
-
- FILES
- /dev/kmem for system image
- /dev/mem also for system image
-
-
-
-
- Hewlett-Packard Company - 1 - HP-UX Release 8.0: January 1991
-
-
-
-
-
-
- fuser(1M) fuser(1M)
-
-
-
-
- /hp-ux for namelist
-
- SEE ALSO
- mount(1M), ps(1), kill(2), signal(2).
-
- STANDARDS CONFORMANCE
- fuser: SVID2
-
-
-
- __________________________________________
-
- Hans Linschooten
-
- Disclaimer: This is just my own opinion and not that of my present employer.
-
-