I stand corrected on that point. =) *re-reads man page* I guess my main
point is that the OS was never specified so I assumed it was Linux. I
could have just as easilly given the syntax from my RS/6000 running AIX
for all the good it would have done. =) Anyhow, I appreciate the
clairification.
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:
>
> no way!
>
> maybe on your linux that syntax for su is okay, but Peter runs a FreeBSD
> system.
> right syntax for freebsd would be:
> su account -c "command"
> for instance, you could use:
> su -m bin -c "/usr/local/share/sqwebmail/cleancache.pl" 2>&1 >/dev/null
>
> root@gw:~# su bin -c "id"
> This account is currently not available.
> root@gw:~# su -m bin -c "id"
> uid=3(bin) gid=7(bin) groups=7(bin)
>
> without the -m you get an error because the bin user does not have a real
> shell.
>
> and by the way, even on your linux, your command will not run every 40
> minutes, but every 60 minutes.
> 40 means that the commands run at 1:40, 2:40, 3:40, etc.
>
>
> regards,
> Claudiu Bosioc
>
>
> [EMAIL PROTECTED] writes:
>
> > 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.
> >> >
> >>
> >>
> >
>
>