crontab bash tests
Karl Auer
kauer at biplane.com.au
Tue Sep 26 10:07:06 UTC 2023
On Tue, 2023-09-26 at 11:36 +0200, Ralf Mardorf via ubuntu-users wrote:
> On Tue, 2023-09-26 at 16:41 +1000, Karl Auer wrote:
> > You could try running /bin/sh at the command line then seeing if
> > your command line works. Might give you a clue.
>
> the user's login shell might not be the same as the /usr/bin/sh link
> ;).
Indeed. But it might still "give a clue".
> However, why not instead of running an endless unreadable line with
> or without bashisms [...] just run a human readable script
Simplifying the pipeline, simplifying the conditionals, simplifying the
tests, removing bashisms and putting the commands into a script have
all been suggested to the OP already. None were adopted, apparently an
unreadable, overly complex, bashism-containing in-cron command line is
preferred.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
GPG fingerprint: 61A0 99A9 8823 3A75 871E 5D90 BADB B237 260C 9C58
Old fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
More information about the ubuntu-users
mailing list