OC-PsychOS2/exec/ps.lua

6 lines
148 B
Lua
Raw Normal View History

print("PID# Parent | Name")
2019-10-27 23:34:02 +11:00
for k,v in pairs(os.tasks()) do
local t = os.taskInfo(v)
2019-11-09 13:48:50 +11:00
print(string.format("%4d %4d | %s",v,t.parent,t.name))
2018-11-03 03:05:41 +11:00
end