#!/usr/bin/perl #first print HTTP headers (NO response code!) print "Content-Type: text\/html\r\n"; #print mandatory crlf print "\r\n"; $USER_DIR="/home/"; #Collect names of users (actually, files in /home) and dump them to tempfile. #this gets ALL users, even if they don't exist...could filter out #anybody who doesn't have /home in homedir... system("cat /etc/passwd | awk -F \":\" '{print \$1}' > /tmp/ul$$"); #this gets all users with homedir in /home #system("/bin/ls /home > /tmp/ul$$"); #print out header crap print "