Roxen.git / server / config_actions / proc.pike

version» Context lines:

Roxen.git/server/config_actions/proc.pike:1:   /* -  * $Id: proc.pike,v 1.3 1997/09/03 07:51:35 grubba Exp $ +  * $Id: proc.pike,v 1.4 1997/09/06 16:26:34 grubba Exp $    */      inherit "wizard";      constant name= "Status//Extended process status";   constant doc = "Shows detailed process status on Solaris 2.5 and 2.6.";      constant more=1;      void create()
Roxen.git/server/config_actions/proc.pike:91:    map = process_map2(map);       string tree = Array.map(proc("tree -a",(int)id->variables->pid)/"\n",format_proc_line,    (int)id->variables->pid||getpid())*"";       return ("<font size=+1>Process Tree for "+(id->variables->pid||getpid())+"</font><pre>\n"+    tree+    "</pre><font size=+1>Misc status for "+(id->variables->pid||getpid())    +"</font><pre>Memory Usage: "+map+"\n\nCredentials: "+    ((proc("cred",id->variables->pid)/":")[1..]*":")+ -  "\nPwd: "+ +  "\nCwd: "+    ((proc("wdx",id->variables->pid)/":")[1..]*":")+   // "Stack: "+(proc("stack",id->variables->pid)/":")[1..]*":"+    "</pre>");   }      mixed handle(object id) { return wizard_for(id,0); }