Command line of the process, i.e. the executable and the command line arguments, in a character vector. On Unix the program might change its command line, and some programs actually do it.

ps_cmdline(p)

Arguments

p

Process handle.

Value

Character vector.

Details

For a zombie process it throws a zombie_process error.

See also

Examples

p <- ps_handle() p
#> <ps::ps_handle> PID=17400, NAME=R, AT=2020-02-16 11:38:31
#> [1] "R"
#> [1] "/home/travis/R-bin/lib/R/bin/exec/R"
ps_cmdline(p)
#> [1] "/home/travis/R-bin/lib/R/bin/exec/R" #> [2] "--slave" #> [3] "--no-save" #> [4] "--no-restore" #> [5] "-f" #> [6] "/tmp/Rtmp6B1y8T/callr-scr-43787155eb9"