crontab bash tests

Karl Auer kauer at biplane.com.au
Tue Sep 26 06:41:56 UTC 2023


On Tue, 2023-09-26 at 08:33 +0200, lejeczek via ubuntu-users wrote:
> and I tried them all, outside of _cron_ the same command 
> line, copy&paste, works as expected, tests works as expected.

Then the issue is a difference in the shells. That means the actual
shell (sh vs bash), or the environment in the shell, or the user
running the shell.

You could try running /bin/sh at the command line then seeing if your
command line works. Might give you a clue.

Are you seeing failures logged either to /var/log/syslog or to root's
mail spool file (or the recipient of emails to root)?

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer






More information about the ubuntu-users mailing list