藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 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



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com