'GCC compiling from a script executed from Crontab
Just a question about execute a sh script from Crontab: I have a script on some Nas that download and copile a C source file from a another linux server. All work fine if i execute the script from bash(with root) from Nas shell, gcc work good and i will get the compiled exe. But when i try to put in crontab the execution of this script, at prefixed times, the script is esecuted without problem, all commands in all lines are execute excepted the line where gcc compilete the script. Have any ideas about it ? Or just some suggests where looking for it, vars, paths, debug, ecc ? Thanks
Try to change permission, look path, variables, ecc.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
