Skip to content

sys.proc

Turtle Kitty edited this page Jan 28, 2016 · 1 revision

sys.proc

sys.proc.pid
    -> 10600

sys.proc.uid
    -> 1000

sys.proc.gid
    -> 1000

sys.proc.parent-pid
    -> 10599

(sys.proc.process-gid sys.proc.pid)
    -> 10600

(sys.proc.run "date +%s")
    -> 10604
    -> 1439168695

(sys.proc.sleep 1)  ; Zzzzz...

(sys.proc.fork
    (thunk
        (sys.say "Beware!  I live.")
        (sys.say "Run, coward!!!")
        (sys.proc.exit)))

    -> 10605
    -> Beware!  I live.
    -> Run, coward!!!
Clone this wiki locally