Try this:

40 * * * * su -c "/usr/local/share/sqwebmail/cleancache.pl" bin 2>&1 >
/dev/null

This will run the command every 40 minutes.  su -c "command" bin tells it
to switch user to the user "bin" and run command "command"  This should be
in your root crontab.

Cheers,

Tren.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Tren Blackburn - Owner                mailto:[EMAIL PROTECTED]  =
= End of Time Networks                  http://www.theendoftime.net  -
- (403) 269-2122                                                     =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

On Fri, 23 Feb 2001, Claudiu Bosioc wrote:

> I guess you have copied into /etc/crontab the exact line that was shown
> after make install has finished.
> well, that line did not work for me either.
> there are some issues with the syntax of the su command.
> here is the line from my crontab:
> 30 * * * * root /usr/local/share/sqwebmail/cleancache.pl
> it works for me.
>
> regards,
> Claudiu Bosioc
>
> Peter Brezny writes:
>
> > I've been getting these in the message log.
> >
> > Feb 22 20:18:44 virtual2 cron[212]: login_getclass: unknown class
> > 'cleancache.pl'
> >
> > What's going on here?  And how do i fix it?
> >
> > TIA
> >
> > Peter Brezny
> > SysAdmin Services Inc.
> >
>
>

Reply via email to