Syntax
pnametopid(string)
Description
The pnametopid() function returns an array of process id’s of a given process name. If the process name cannot be found then false is returned.
Example
include("ps")
println(pnametopid("apache2"))
println(pnametopid("cupds"))
println(pnametopid("fubar"))
[1530, 389446, 389447, 389448, 389449]
[389508]
false