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:
-pubhtml option) in
the user's home directory.
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:
-excfile filename
Each login name must be listed on a separate line in the file.
-footer filename
-header filename
-help
makehomeidx.
-hostname string
hostname(1).
-idxrc name
makehomeidx resource file.
Otherwise, use ".homeidxrc".
-incfile filename
If a login name appears in the include file and the exclude file specified by
-excfile, then the user is excluded.
Each login name must be listed on a separate line in the file.
-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
http://hostname/%7Elogin/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.