Getargv is a gem that allows you to query the arguments of other processes as an array or string. This gem only supports macOS because the KERN_PROCARGS2 sysctl only exists in xnu kernels, BSD or Linux users should just read /proc/$PID/cmdline which is much easier and faster, Solaris users should use pargs.
Required Ruby Version
>= 2.6.0
Authors
Camden Narzt
Versions
- 0.3.19 April 24, 2026 universal-darwin (94 KB)
- 0.3.18 March 28, 2026 universal-darwin (93.5 KB)
- 0.3.17 March 21, 2026 universal-darwin (93.5 KB)
- 0.3.16 March 21, 2026 universal-darwin (93.5 KB)
- 0.3.15 March 20, 2026 universal-darwin (93 KB)
- 0.2.0 January 05, 2023 universal-darwin (90.5 KB)