Try this. I wrote it while practicing with APUE.
/*
* FILE: list-homepages.c
* AUTHOR: Alan Shutko
* DATE: Wed Sep 18 1996
*
*/
static char *rcsid = "$Header: /home/ats/Software/list-homepages.c,v 1.7.1.4
1997/03/19 22:50:07 ats Exp $";
#define HTML_DIR "/public_html"
#define SORT_
On Tue, 10 Mar 1998, Douglas F. Elznic wrote:
[...]
>I remember seeing some on the net somewhere that would format the output
>to html so you could just point to it for a list of users home pages...
#!/bin/sh
p_catdir="/users/webpages/CATALOG"
p_pagesdir="public_html"
p_passwd="/etc/passwd"
p_srm
On Tue, 10 Mar 1998 [EMAIL PROTECTED] wrote:
> Oh, let's see now...
>
> #!/bin/sh
> find /home -type d -name public_html -print | mail -s 'list of
> public_html directories' root@localhost
>
> This will check that the directory exists... what exactly do you want to
> check?
I remember seeing som
>Does anyone have one of those quick little scripts that scans the users
>dirs every night to check for public_html?
Oh, let's see now...
#!/bin/sh
find /home -type d -name public_html -print | mail -s 'list of
public_html directories' root@localhost
This will check that the directory exists...