package com.zaranux.os.client.commands;
import com.zaranux.client.api.AsyncCallback;
import com.zaranux.os.client.core.Process;
public class ps extends Command {
@Override
protected void execute(AsyncCallback<Boolean> callback) {
String list = "";
for(com.zaranux.client.api.types.Process process : systemcall.getProcesses())
{
Process p = (Process) process;
list += p.getPID() + "\t" + p.getParentPID() + "\t" + p.getStartTime() + "\t" + p.getProcessName() + "\n";
}
System.out.println(list,callback);
}
}