crontab bash tests
Ralf Mardorf
kde.lists at yahoo.com
Tue Sep 26 13:41:32 UTC 2023
On Tue, 2023-09-26 at 08:40 +0200, lejeczek via ubuntu-users wrote:
> ough, okey, seems that I was missing:
> SHELL=/usr/bin/bash
> if I was to expect Ubuntu's _crond_ to behave more like defaults in RHEL/Centos.
> many thanks, L
And I missed that message. Yahoo "randomly" does hide mailing list mail
in the Spam folder on the server and I don't notice this by using POP
accounts.
My understanding is that
$SHELL
vs
ls -l /usr/bin/sh
was mentioned earlier by this thread.
I repeat myself, your one-liner is still fishy, no matter what shell you
are using, if the "touch" command should fail for whatsoever reason,
bash as well as dash will run "rm".
$ { [ $(true)$? -eq 0 ] && false || echo "Hello Kitty"; }
Hello Kitty
More information about the ubuntu-users
mailing list