added labels to ps()
This commit is contained in:
parent
67ecaec76e
commit
221d0fbd1b
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue