The cron daemon spawns a shell (in which the cron job executes) with the same user permissions as the one who made the cron entries but doesn't take his environment settings provided in the .profile.
Set the required variables within the script you are calling, or issue a . /.profile as part of the script. Note that the space between . and / is important. HTH.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.