Sponsored Content
Full Discussion: lsof equivalent in HP-UX
Operating Systems HP-UX lsof equivalent in HP-UX Post 302280641 by nixnoob on Tuesday 27th of January 2009 10:16:26 AM
Old 01-27-2009
Depending on what you're looking for:

Glance
combination of ps with grep
fuser
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

lsof

Could someone please give me a step for a hint on which version and where is the above utility is for version 4.3.3.0 of Aix. (1 Reply)
Discussion started by: jacl
1 Replies

2. AIX

command lsof

hello Sorry but i don't understand very well the lsof command with the man. Can you explain to me what is the use of this command ? thank you (2 Replies)
Discussion started by: pascalbout
2 Replies

3. UNIX for Dummies Questions & Answers

lsof ???

Hi All, I'm having a problem with "lsof" in HP-UX system. Its giving me 2 two different results when running it. 1 . lsof -p 'PID' | wc -l -----gives some value 2 . lsof | grep 'PID' | wc -l The above two commands gives me two different values with the same PID...... Thanks (6 Replies)
Discussion started by: marc
6 Replies

4. Shell Programming and Scripting

lsof in solaris

Hi .. I have written a cronjob to invoke a script that would transfer files based on some criteria. Consider folders A and B. Say I FTP a large file to A. Before the file gets fully transfered say the cronjob gets invoked. The script will move the file before its fully transfered. To detect... (1 Reply)
Discussion started by: champak
1 Replies

5. HP-UX

lsof on HPUX 11.23

Hey Guys... I am looking for lsof by HPUX 11.23 . Could someone said me where can download it? Thanks in Advance. ANGEL GADEA (3 Replies)
Discussion started by: aggadtech08
3 Replies

6. Shell Programming and Scripting

Find and lsof

Hi All, My target is to find the biggest files opened by any process and from that i have to find process id and the corresponding file also. To get the process id which is accessing the biggest file in the given file system, i am using the below command. lsof -s /home/arun/my_work |... (3 Replies)
Discussion started by: Arunprasad
3 Replies

7. UNIX for Dummies Questions & Answers

lsof

I'm looking to list all of the files open at a certain time up on a UNIX box. From looking on the internet, it looks as though lsof is the most common. However have tried this and got the following: ksh: lsof: not found Now having gone into bash mode and hit tab twice I see that lsof... (3 Replies)
Discussion started by: meevagh
3 Replies

8. UNIX for Dummies Questions & Answers

about lsof

Hi, I typed lsof -i :80 in my putty but i am not able to get sockets related to port 80 Can any one help me out soon Can anyone point out the reason for not able to get the related sockets Output of what i am getting in my putty is displayed below training@use:~> lsof -i :80... (4 Replies)
Discussion started by: satheeshkr_cse
4 Replies

9. HP-UX

lsof in HP-UX

In Linux and Solaris lsof accepts the -X switch which allows to see if deleted files are still in use and eat disk space. In HP-UX it is now working and it is a problem... today one of my filesystems on the server was increasing very fast but existing file sizes were not really changing. lsof shows... (3 Replies)
Discussion started by: Vorb
3 Replies

10. Shell Programming and Scripting

Lsof command

Hi, I am trying to find the files in a specific directory that are currently in open state. I need this information to archive the old files that are not active in the directory. I get the following output when I try the command $ lsof +d '/var/tmp/'|awk '{print $9}'|sort -u NAME... (1 Reply)
Discussion started by: ryzen7
1 Replies
checkrestart(1) 						  debian-goodies						   checkrestart(1)

NAME
checkrestart - check which processes need to be restarted after an upgrade SYNOPSIS
checkrestart [ -hvpa ] [ -b blacklist_file ] [ -i package_name ] DESCRIPTION
The checkrestart program tries to determine if there are processes in the system that need to be restarted after a system upgrade. This is necessary since an upgrade will usually bring new system libraries and running processes will be still using the old versions of the libraries. In stable Debian GNU/Linux systems this is typically needed to eliminate a system exposure to a vulnerability which might have been fixed by upgrading a library which that process makes use of. Consequently, checkrestart is sometimes used as an audit tool to find outdated versions of libraries in use, particularly after security upgrades. Administrators should not, however, rely on its output completely (see BUGS below). This script needs to run as root in order to obtain the information it needs for analysis. OPTIONS
-h,--help Show the program help and exit. -v,--verbose Generate detailed output. This output includes the list of all processes found using deleted files or descriptors as well as the deleted files and descriptors found. -p,--package Only process deleted files that belong to a package, ignoring deleted files which do not have an associated package in the package system. -a,--all Process all deleted files regardless of location. This makes the program analyse deleted files even if they would be discarded because they are located in locations, such as /tmp , which are known to produce false positives. It will take preceded if used simultaneously with the -p option. -b file,--blacklist=file Read a blacklist of regular expressions from file. Any files matching the patterns will be ignored. -i name,--ignore=name Ignore services that are associated to the package name provided in name. EXIT STATUS
The program will exit with error (1) if a non-root user tries to run it. Otherwise, it will always exit with error status 0. BUGS
This program might fail if the output of the lsof utility changes since it depends on it to detect which deleted files are used by pro- cesses. It might also output some false positives depending on the processes' behaviour since it does not check yet if the (deleted) files in use are really libraries. If you find a false positive in checkrestart please provide the following information when submitting a bug report: -- The output of checkrestart using the -v (verbose) option. -- The output of running the following command as root: lsof | egrep 'delete|DEL|path inode' Checkrestart is also sensitive to the kernel version in use. And might fail to work with newer (or older) versions. A rewrite to make it less dependent on lsof could improve this, however. SEE ALSO
lsof(8) AUTHOR
checkrestart was written by Matt Zimmerman for the Debian GNU/Linux distribution. COPYRIGHT AND LICENCE
Copyright (C) 2001 Matt Zimmerman <mdz@debian.org> Copyright (C) 2007,2010-2011 Javier Fernandez-Sanguino <jfs@debian.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. On Debian systems, a copy of the GNU General Public License may be found in /usr/share/common-licenses/GPL. debian-goodies December 19 2006 checkrestart(1)
All times are GMT -4. The time now is 04:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy