User Tools

Site Tools


faq:0043

Q: How come my script works in shell when invoked manually but not in CRON?
A:
In XigmaNAS, CRON does not have a user profile set. When you run a script or command manually it runs using your user profile/settings/privileges, (root usually). CRONs' settings/privileges are not the same as roots'. For these reasons you should always specify full paths for all files in your scripts and verify rights and privileges for all resources.

References:

Advanced Scripts and shell tips ⇒9.0.0.1
faq/0043.txt · Last modified: 2018/08/10 19:29 by zoon01