From 221d0fbd1b295f03c5f43e67ac95f4c8805ba511 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Fri, 4 Aug 2017 09:05:25 +1000 Subject: [PATCH] added labels to ps() --- modules/lib/shutil.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/lib/shutil.lua b/modules/lib/shutil.lua index af33592..3cfd35e 100644 --- a/modules/lib/shutil.lua +++ b/modules/lib/shutil.lua @@ -11,6 +11,7 @@ function cat(p) end function ps(f) local f=f or "" + print("PID\tName") for k,v in ipairs(os.tasks()) do if v:find(f) then print(tostring(k).."\t"..tostring(v))