請問一下~ 我怎麼編才是正確的呢?
使用freebsd4.4 想編輯/etc/rc.local 的開機自動執行檔
想開機之後 能自己跑pttbbs 的/home/bbs/pttbbs/sample/crontab
用bbsadm去執行
寫法是
su bbsadm /usr/bin/crontab /home/bbs/pttbbs/sample/crontab
還是
su - bbsadm -c /home/bbs/pttbbs/sample/crontab
或是
su - bbsadm -c /usr/bin/crontab /home/bbs/pttbbs/sample/crontab
麻煩哪位大大幫我解釋好嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.135.146.161