User Tools

Site Tools


faq:0043

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
faq:0043 [2018/07/08 17:28]
127.0.0.1 external edit
faq:0043 [2018/08/10 20:29] (current)
zoon01
Line 1: Line 1:
-**Q: How come my script works in shell when invoked manually but not in CRON?\\  A:** In NAS4Free, 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.+**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: References:
-  * [[http://forums.nas4free.org/viewtopic.php?f=70&t=2805|Shell Scripting Primer.]] -  We show you how to create and run a script in NAS4Free step-by-step.+  * [[https://www.xigmanas.com/forums/viewtopic.php?f=70&t=2805|XigmaNAS Scripting Primer / Readme!]] -  We show you how to create and run a script in XigmaNAS step-by-step.
   * {{:faq:where_can_i_save_my_scripts_.pdf|Where can I save my scripts?}} - Discussion of best locations based on your platform / needs.   * {{:faq:where_can_i_save_my_scripts_.pdf|Where can I save my scripts?}} - Discussion of best locations based on your platform / needs.
-  * [[http://forums.nas4free.org/viewtopic.php?f=70&t=621|cron job not running.]] - Fixed with script. 
-  * {{:faq:script_cannot_be_executed.pdf|[SOLVED]Script cannot executed.}} - Script troubleshooting. 
-  * {{:faq:help_with_cron_script_problems.pdf|[SOLVED] Help with permission, path, cron, script problems.}} - More script troubleshooting. 
   * {{:faq:automatically_empty_the_recycle_bin.pdf|Automatically empty the CIFS/SMB .recycle bin.}}   * {{:faq:automatically_empty_the_recycle_bin.pdf|Automatically empty the CIFS/SMB .recycle bin.}}
  
  
 |  Advanced  |  Scripts and shell tips  |  =>9.0.0.1  | |  Advanced  |  Scripts and shell tips  |  =>9.0.0.1  |
faq/0043.1531063737.txt.gz ยท Last modified: 2018/07/08 17:28 by 127.0.0.1