Re: Restarting cron after crontab update
On Mon, Dec 09, 2024 at 08:30:16 -0700, Charles Curley wrote:
> On Mon, 9 Dec 2024 15:59:38 +0100
> <tomas@tuxteam.de> wrote:
>
> > Most probably cron will just see what you intended as a user
> > name as part of the command:
> >
> > rprice /mnt/home/rprice/bark/bark.sh 11 > /dev/null 2>&1
> >
> > will run the command "rprice" on the args "/mnt..."; most of
> > the time this will be a "no such file or so-and-so", sometimes
> > it might lead to surprising results ;-)
>
> In which event cron will send a complaining email to the appropriate
> user. Since Mr. Price hasn't mentioned any such emails, I conjecture he
> is not monitoring his emails in /var/mail, and probably should be.
The redirections >/dev/null 2>&1 are discarding all the output, so there
is nothing to be sent to his email.
Reply to: