|
藍森林 http://www.lslnet.com 2006年6月26日 11:18
請高手幫我解釋下:下面兩句話,謝謝!
dir=$(echo $0 |sed 's/autorun//')
cd $dir
tree=$(pwd)
# Change directories so we can unmount the CD-ROM Drive
cd /
exec /usr/bin/redhat-cdinstall-helper $tree
小弟剛剛接觸shell,很多不懂,請大俠詳細解釋一下,謝謝幫助! |
請高手幫我解釋下:下面兩句話,謝謝!
假如你的文件是 shellfile
那麼你執行如下
./shellfile autorunddd
那麼就是dir=`echo /etc/autorun|sed 's/autorun//'`
然後cd /etc/
tree=/etc
cd /
exec /usr/bin/redhat-cdinstall-helper /etc |
| |