#author("2022-03-16T15:42:00+09:00","default:nobuoki","nobuoki")
#author("2022-03-16T15:42:15+09:00","default:nobuoki","nobuoki")
* tl;dr [#ua435900]

cron で shebang を含むスクリプトを起動するときは ''LD_PRELOAD'' を定義しておきましょう

#prism(bash){{{
$ crontab -l | head
MAILTO=you@example.com
PATH=/data/data/com.termux/files/home/bin:...
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so

16 * * * * some-script
-- snip --
}}}

参考

- [[GitHub - termux/termux-exec: A execve() wrapper to fix problem with shebangs.>https://github.com/termux/termux-exec]]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS