Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
ps-cmdline ( path -- path string )
Vocabulary
tools.ps
Definition
USING:
accessors
kernel
sequences
splitting
unix.linux.proc
;
IN:
tools.ps
:
ps-cmdline
( path -- path string )
dup
parse-proc-pid-cmdline
[
dup
parse-proc-pid-stat
filename>>
[
"()"
member?
]
trim
"["
"]"
surround
]
[
"\0"
split
" "
join
]
if-empty
;