79797458

Date: 2025-10-23 06:32:41
Score: 2
Natty:
Report link

In crontab you do not execute a login shell. So the profile is not sourced.

You could include (depending which files exist in your account or on your system)

source $HOME/.bashrc

or

source $HOME/.profile

or

source /etc/profile

to the start of your script.

'source' could be abbreviated by a dot (.).

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user31739203