added labels to ps()
This commit is contained in:
parent
67ecaec76e
commit
221d0fbd1b
@ -11,6 +11,7 @@ function cat(p)
|
|||||||
end
|
end
|
||||||
function ps(f)
|
function ps(f)
|
||||||
local f=f or ""
|
local f=f or ""
|
||||||
|
print("PID\tName")
|
||||||
for k,v in ipairs(os.tasks()) do
|
for k,v in ipairs(os.tasks()) do
|
||||||
if v:find(f) then
|
if v:find(f) then
|
||||||
print(tostring(k).."\t"..tostring(v))
|
print(tostring(k).."\t"..tostring(v))
|
||||||
|
Loading…
Reference in New Issue
Block a user