%%s 0/0/0 %%d D 1.1 27-Mar-82 14:59:52 v1.1 1 0 %%c Version 1.1 is the Spring 1982 Distribution of the LBL/Hughes release %%c of the Software Tools Virtual Operating System software and documentation. %%T %%I 1 #-h- pstat.r 517 asc 25-mar-82 09:39:19 v1.1 (sw-tools v1.1) #-h- main 444 asc 25-mar-82 09:39:14 v1.1 (sw-tools v1.1) DRIVER(pstat) integer i, getarg, status, pstat character arg(FILENAMESIZE), pid(PIDSIZE) call query("usage: pstat pid [pid] ...") for (i=1; getarg(i, arg, FILENAMESIZE) != EOF; i=i+1) { call exppid(arg, pid) status = pstat(pid) call putlin(pid, STDOUT) call putlin(" ", STDOUT) if (status == ERR) call putlin("completed", STDOUT) else call putlin("active", STDOUT) call putc('@n') } DRETURN end #-h- pstat.fmt 423 asc 25-mar-82 09:39:20 v1.1 (sw-tools v1.1) .so ~bin/manhdr .hd Pstat (1) 8-Jun-79 determine status of process .sy pstat processid [processid ...] .ds pstat determines the status of processes specified by the processid's in the command line. It returns either active or completed for each process. The processid's are those returned by the shell when a background process is spawned. .fl none .sa sh - shell (command line interpreter) .di .au Joe Sventek (VAX) .bu %%E 1