Abdul Jabbar wrote:
>
> Hi everyone
>
> i hope someone can help me. I am currentley running Htdig which indexes a
> couple of sites on the first day of every month via crontab ( i run it with
> the -a option so people can still use the search). What i would also like to
> do is for htdig to pump out a logged file telling me that it has finished
> indexing the sites is there anyway this can be done after htdig has been
> executed by the crontab?.
According to crontab(5):
...
In addition to LOGNAME, HOME, and SHELL, cron(8) will look
at MAILTO if it has any reason to send mail as a result of
running commands in ``this'' crontab. If MAILTO is
defined (and non-empty), mail is sent to the user so
named. If MAILTO is defined but empty (MAILTO=""), no
mail will be sent. Otherwise mail is sent to the owner of
the crontab. This option is useful if you decide on
/bin/mail instead of /usr/lib/sendmail as your mailer when
you install cron -- /bin/mail doesn't do aliasing, and
UUCP usually doesn't read its mail.
...
Which should just do what you want ;-)
cheers,
Torsten
--
InWise - Wirtschaftlich-Wissenschaftlicher Internet Service GmbH
Waldhofstra�e 14 Tel: +49-4101-403605
D-25474 Ellerbek Fax: +49-4101-403606
E-Mail: [EMAIL PROTECTED] Internet: http://www.inwise.de
------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.