The name of the program, which is typically the name of the executable.

ps_name(p)

Arguments

p

Process handle.

Value

Character scalar.

Details

On on Unix this can change, e.g. via an exec*() system call.

ps_name() works on zombie processes.

See also

Examples

p <- ps_handle() p
#> <ps::ps_handle> PID=17400, NAME=R, AT=2020-02-16 11:38:31
ps_name(p)
#> [1] "R"
#> [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"