
Listing 1 - /cgi-bin/ps Very basic CGI script


#!/bin/sh
#
# CGI script to display processes sorted by PID
#
echo 'Content-type: text/html'
echo ''
echo '<PRE>'
ps -ef | sort -n +1
echo '</PRE>'
