"Tim E. Patterson" wrote:

> Hi.
> Sorry if this is a little off topic. I thought some diald users might have
> the same item on their wish list, though.
> We have an intranet where most users have local email accts (Sendmail on
> Linux), and a lot of users also have Internet email accts, and the only
> reason they connect to the Internet is to get their email.
> Does anybody have or know where I can get a script/program/agent that would
> periodically check & retrieve their email and then forward it to their
> local email address?
> If not, I suppose that'll be my next project; I just hate to reinvent the
> wheel if I don't have to ;-}
> TIA.
> Tim Patterson
>

I use a bash script to check every home directory for a .fetchmailrc file
and if it exists I do a "su - $user -c fetchmail". I don't have the script here

but it must look something like this:

cd /home
for $user in *; do
  if [ -f /home/$user/.fetchmailrc ]; then
    su - $user -c fetchmail
  fi
done


Richard Duits
IFCO




-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to