close
vi /ect/rc.locat
key in the command
系統每次開機都會執行裡面的程式
example:重開機以後,自動send e-mail
sleep 60
ifconfig|sed 's/addr:/addr: /g'|awk '{if(NR==2)print "IP4 : "$3;else if (NR==3) print "IP6 : "$3 }'|mail -s "machine ip(209)" wei@gmail.com
全站熱搜