makehomeidx
creates an HTML file (home pages index) containing links to users
home pages on the machine makehomeidx
is invoked. This program can be
executed from cron
(1) to automate the adding of user's home pages to a Web
server.
makehomeidx
scans through a UNIX password file (-passwd option) and checks
each user's account if (s)he has defined a home page. makehomeidx
does the
following for each user:
index.html
home.html
.html
makehomeidx
resource file (-idxrc option) in
the user's public html directory. The file contains two lines. The first line
is the user's name to use in the home page index. The second line is the
user's (job) title to appear after the user's name.
If no resource file exists, the user's name as specified in the UNIX password file will be used, and no job title is listed.
See Usage for a complete list of options that affect the behavior of makehomeidx
.
makehomeidx
is invoked from a Unix shell, with the following syntax:
% makehomeidx
[options] outfile
The resulting HTML home pages index file is specified by outfile.
The following options are available to makehomeidx
:
-footer
filename
-header
filename
-help
makehomeidx
.
-hostname
string
hostname
(1).
-idxrc
name
makehomeidx
resource file.
Otherwise, use ".homeidxrc
".
-passwd
filename
/etc/passwd
"
instead. If filename is equal to "-
", then makehomeidx
reads the password
file from standard input. This can be useful for password files that are
accesible via NIS. Example:
% ypcat passwd | makehomeidx -passwd - homepages.html
-pubhtml
name
public_html
".
-title
string
Any arguments that are not part of the command-line options are treated directories containing e-mail messages.
http://
hostname/%7E
login/
homepage
where,
makehomeidx
has only been
tested with the NCSA httpd. The author is not sure if the URLs will work
for other http daemons.
makehomeidx
resource file
exists and no real-life name is defined in the password file, then the user's
login name is used.
makehomeidx
requires the use of newgetopt.pl
.