Please upload the scripts using the
~downeyt/public/bin/webftp.pl
script from mongoose. Hand in printouts of the scripts in class.
Create a link for each of these on your server's page.
USER PID %CPU %MEM SZ RSS TT S START TIME COMMAND
Use the split command to put each line of the output into an array, then
use the split command again to split each line into separate fields. Notice
that the TIME field will be in the format 0:00 for seconds and hundredths,
but it is not always in position 0 in the array: if START is of the format
12:34:34 then TIME will be in position 9, if START is of the format Mar 28
then TIME will be in position 10. Use a regular expression to test the format
of position 8 to determine where TIME is.