Path to the executable of the process. May also be an empty string or NA if it cannot be determined.

ps_exe(p)

Arguments

p

Process handle.

Value

Character scalar.

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"
ps_exe(p)
#> [1] "/home/travis/R-bin/lib/R/bin/exec/R"
#> [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"