[[ blog 이사 과정에서 정확한 posting날짜가 분실됨. 년도와 분기 정도는 맞지 않을까? ]]
Sometimes, script that works well in command shell, doesn't work correctly in 'cron'.
In this case, following should be checked firstly.
-------------------
'cron' uses initial environment varialbe. And in this case, '/bin/sh' is used as a shell.
In case of some high-version-ubuntu, '/bin/sh' is not 'bash' but 'dash'. And this can be root cause of this issue.
To avoid this, we should always add "#!/bin/bash" at the top of bash script, habitually.
'Domain > Linux' 카테고리의 다른 글
[Linux] fork in multi-threaded program. (0) | 2010.08.16 |
---|---|
[Linux][Android] Analyzing Memory Usage. (0) | 2010.08.15 |
[Bash] Miscellaneous information (0) | 2010.04.09 |
[Bash] Shell setup files (0) | 2009.10.15 |
[Ubuntu] Start git on ubuntu with HP EliteBook 8530w (0) | 2009.05.03 |