As a coding exercise and to help me ease the migration of some Solaris scripts, I've added functionality of pargs, penv and pwdx commands to procstat, that also might be of interest to someone else.
I tried to get most of procstat code.
Differential D26310
Mimic behavior of Solaris' pargs, penv, pwdx commands otis on Sep 3 2020, 1:34 PM. Authored by Tags None Referenced Files
Details
As a coding exercise and to help me ease the migration of some Solaris scripts, I've added functionality of pargs, penv and pwdx commands to procstat, that also might be of interest to someone else. I tried to get most of procstat code.
Diff Detail
Event TimelineComment Actions LGTM. It would be great if you could run the usual 'mandoc -Tlint' and 'igor' checks. Comment Actions root@b13:/usr/src/usr.bin/procstat # mandoc -Tlint procstat.1 root@b13:/usr/src/usr.bin/procstat # igor procstat.1 root@b13:/usr/src/usr.bin/procstat # Comment Actions Can you put sample output from the new commands into the review summary ?
Comment Actions root@b13:~ # ps 687 PID TT STAT TIME COMMAND 687 - Is 0:02.55 /usr/sbin/cron -s root@b13:~ # pargs 687 687: cron args[0]: /usr/sbin/cron args[1]: -s root@b13:~ # penv 687 687: cron envp[0]: PATH=/sbin:/bin:/usr/sbin:/usr/bin envp[1]: PWD=/ envp[2]: HOME=/ envp[3]: RC_PID=22 envp[4]: BLOCKSIZE=K root@b13:~ # pwdx 687 687: /var/cron
|