path: python-psutil_7.1.0-1/scripts/pidof.py else: pgname = sys.argv[1] pids = pidof(pgname) if pids: print(" ".join(pids)) path: python-psutil_7.1.0-1/scripts/pidof.py """A clone of 'pidof' cmdline utility. $ pidof python 1140 1138 1136 1134 1133 1129 1127 1125 1121 1120 1119 """ path: python-psutil_7.1.0-1/scripts/pidof.py def pidof(pgname): # search for matches in the process name and cmdline return [ path: python-psutil_7.1.0-1/scripts/pidof.py """A clone of 'pidof' cmdline utility. $ pidof python path: python-psutil_7.1.0-1/MANIFEST.in include scripts/netstat.py include scripts/nettop.py include scripts/pidof.py include scripts/pmap.py include scripts/procinfo.py path: python-psutil_7.1.0-1/scripts/internal/print_announce.py running processes. It implements many functionalities offered by command \ line tools such as: ps, top, lsof, netstat, ifconfig, who, df, kill, free, \ nice, ionice, iostat, iotop, uptime, pidof, tty, taskset, pmap. It \ currently supports Linux, Windows, macOS, Sun Solaris, FreeBSD, OpenBSD, \ NetBSD and AIX. Supported Python versions are cPython 3.6+ and PyPy. path: python-psutil_7.1.0-1/psutil/tests/test_scripts.py self.assert_syntax('iotop.py') def test_pidof(self): output = self.assert_stdout('pidof.py', psutil.Process().name()) assert str(os.getpid()) in output path: python-psutil_7.1.0-1/psutil/tests/test_scripts.py def test_pidof(self): output = self.assert_stdout('pidof.py', psutil.Process().name()) assert str(os.getpid()) in output path: python-psutil_7.1.0-1/setup.py 'ps', 'top', 'kill', 'free', 'lsof', 'netstat', 'nice', 'tty', 'ionice', 'uptime', 'taskmgr', 'process', 'df', 'iotop', 'iostat', 'ifconfig', 'taskset', 'who', 'pidof', 'pmap', 'smem', 'pstree', 'monitoring', 'ulimit', 'prlimit', 'smem', 'performance', 'metrics', 'agent', 'observability',