精華區beta FreeBSD 關於我們 聯絡資訊
※ 引述《[email protected] (特洛的夢中世界)》之銘言: > 請問一下 > 1.我如果要讓 abc 這個帳號在開機時自動執行一些命令 我該怎麼加呢? > 因為加在 rc.local內好像是會是root執行 > 2.如果我要用crontab 定時備份 /usr 而存成的檔名希望是 usr.tgz.20030818 > 也就是加上當天的日期 我該怎麼做呢? 那如果我只要保留7天 有辦法自動做嗎?? 1. 編輯 rc.local su abc -c "你要跑的東西" 2. 撰寫 shell script,參考 date 這個指令 -- [超級光的部落格] http://superlight.dhs.org/blog -- ╭───╮╭─╮ █◤█││ ※ Origin: 超級光小站 <SuperLight.twbbs.org> █◢◣╮│ ※ From : adsl-dyn-tpe-101-134.so-net.net.tw ◥◤█││╰─╮ █◢█││███ ╰───╯╰───╯