home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp / 9429 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  3.1 KB

  1. From: hansl@hpuamsa.neth.hp.com (Hans Linschooten PSO)
  2. Date: Tue, 18 Aug 1992 16:56:29 GMT
  3. Subject: Re: inode to filename
  4. Message-ID: <28510313@hpuamsa.neth.hp.com>
  5. Organization: HP-Sales Office-The Netherlands
  6. 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
  7. Newsgroups: comp.sys.hp
  8. References: <1992Aug06.172513.4063@CS.ORST.EDU>
  9. Lines: 94
  10.  
  11. And how about fuser and option -k, to kill all processes?
  12. Not only files, but also filesystems (or block special devices).
  13.  
  14. This you can find in man 1m fuser in HP-UX.
  15.  
  16. ----------------------------------
  17.  
  18.  fuser(1M)                               fuser(1M)
  19.  
  20.  
  21.  
  22.  
  23.  NAME
  24.       fuser, cfuser - list process IDs of all processes that have file open
  25.  
  26.  SYNOPSIS
  27.       /etc/fuser [-ku] files [-] [[-ku] files]
  28.  
  29.       /etc/cfuser [-ku] files [-] [[-ku] files]
  30.  
  31.  DESCRIPTION
  32.       fuser lists the process IDs of the processes which have file open.
  33.       For block special devices, all processes using any file on that device
  34.       are listed.  The process ID is followed by c if the process is using
  35.       the file as its current directory or p if using the file as its root
  36.       directory.
  37.  
  38.       If the -u option is specified, the login name (in parentheses) also
  39.       follows the process ID.  In addition, if the -k option is specified,
  40.       the SIGKILL signal is sent to each process.  Only users with
  41.       appropriate privileges can terminate another user's process (see
  42.       kill(2)).  Options can be respecified between groups of files.  The
  43.       new set of options replaces the old set, with a lone dash canceling
  44.       any options currently in force.
  45.  
  46.       The process IDs are printed as a single line on the standard output,
  47.       separated by spaces and terminated with a single new line.  All other
  48.       output is written on standard error.
  49.  
  50.       In the HP Clustered environment, cfuser identifies processes running
  51.       on any node in the HP Cluster using a file or file structure.  A
  52.       separate report is produced for each member of the cluster.  Each
  53.       report is preceded by the cluster member's name.
  54.  
  55.  EXAMPLES
  56.       fuser -ku /dev/dsk/1s?
  57.         if typed by a user with appropriate privileges, terminates
  58.         all processes that are preventing disk drive 1 from being
  59.         unmounted, listing the process ID and login name of each
  60.         process being killed.
  61.  
  62.       fuser -u /etc/passwd
  63.         lists process IDs and login names of processes that have the
  64.         password file open.
  65.  
  66.       fuser -ku /dev/dsk/1s? -u /etc/passwd
  67.         if typed by a user with appropriate privileges, combines
  68.         both of the above examples into a single command line.
  69.  
  70.  FILES
  71.       /dev/kmem      for system image
  72.       /dev/mem         also for system image
  73.  
  74.  
  75.  
  76.  
  77.  Hewlett-Packard Company        - 1 -    HP-UX Release 8.0: January 1991
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  fuser(1M)                               fuser(1M)
  85.  
  86.  
  87.  
  88.  
  89.       /hp-ux         for namelist
  90.  
  91.  SEE ALSO
  92.       mount(1M), ps(1), kill(2), signal(2).
  93.  
  94.  STANDARDS CONFORMANCE
  95.       fuser: SVID2
  96.  
  97.  
  98.  
  99. __________________________________________
  100.  
  101. Hans Linschooten 
  102.  
  103. Disclaimer: This is just my own opinion and not that of my present employer.
  104.  
  105.