●blog/ posts/ Run cron in tinycore
이전
다음
링크
본문
●blog/ posts/ Run cron in tinycore
To activate cron in TinyCore use following steps to set it up:
Add following entry to /opt/bootlocal.sh to startup cron automatically after each boot
crond -L /dev/null 2>&1
Using crontab -e as tc user add following crontab entry:
SHELL=/bin/sh
PATH=/usr/sbin:/usr/bin
# run a script each minute
# use absolute paths to point to scripts
* * * * * sh /home/tc/bin
Add the crontabs to .filetool.sh file to be able to backup crontabs:
echo var/spool/cron >> /opt/.filetool.lst
Run the backup script to backup manually (it is better to be safe then sorry):
filetool.sh -d
filetool.sh -b
Reboot the TinyCore guest
After the reboot verify the crontabs have been restored from backup running:
crontab -l
☞ https://11q.kr 에 등록된 자료 입니다. ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다♠
관련자료
-
링크
-
이전
-
다음
댓글 0
등록된 댓글이 없습니다.