.if n .ds Q \&" .if t .ds Q `` .if n .ds U \&" .if t .ds U '' .TH "autorun" 1 .tr \& .nr bi 0 .nr ll 0 .nr el 0 .de DS .. .de DE .. .de Pp .ie \\n(ll>0 \{\ .ie \\n(bi=1 \{\ .nr bi 0 .if \\n(t\\n(ll=0 \{.IP \\(bu\} .if \\n(t\\n(ll=1 \{.IP \\n+(e\\n(el.\} .\} .el .sp .\} .el \{\ .ie \\nh=1 \{\ .LP .nr h 0 .\} .el .PP .\} .. .SH NAME .Pp autorun - 自動裝載/卸載CDROMs並在裝載後執行/path/to/cdrom/autorun .SH 總覽 .Pp \fBautorun\fP [-lmqv?V] [-a EXEC] [-c CDPLAYER] [-e STRING] [-i MILLISEC] [-n STRING] [-t STRING] [--autorun=EXEC] [--cdplayer=CDPLAYER] [--interval=MILLISEC] [--lock] [--mountonly] [--notify=STRING] [--notify-insert=STRING] [--notify-eject=STRING] [--quiet] [--verbose] [--help] [--usage] [--version] [cdromdevices...] .SH 描述 .Pp autorun自動識別系統上所有可獲得的CDROMs,在插入CD時載裝它 們,並執行CD上可能包含的'autorun'可執行檔案。要讓普通使用者 使用這樣的功能,你必須在/etc/fstab中想要使用的CDROMs條目 上加入選項user,exec。 .Pp 你也可以在KDE中使用Autorun.kdelnk。只要把它放到你的 Autostart檔案夾中即可。 .Pp 程式分析命令字串並用裝載點路徑來替換%P%參數。用設備路徑來 替換%D%。然後就用/bin/sh -c "command string"來執行命令字 串; .SH 選項 .Pp .nr ll +1 .nr t\n(ll 2 .if \n(ll>1 .RS .IP "\fI-a, --autorun=EXEC\fP" .nr bi 1 .Pp 如果換CD盤的話執行EXEC。該可執行檔案必須位於CD盤上。例如, 如果你指定"--autorun=myprogram",而你的CD盤裝載到了 /mnt/cdrom下的話,在換盤後,autorun會嘗試運行 "/mnt/cdrom/myprogram"。 (預設為"/autorun") .IP "\fI-c, --cdplayer=CDPLAYER\fP" .nr bi 1 .Pp 如果插入的是唱片的話,運行CDPLAYER (預設為"/usr/bin/kscd") .IP "\fI-i, --interval=MILLISEC\fP" .nr bi 1 .Pp 每次檢查之間間隔MILLISEC (預設為1000000) .IP "\fI-l, --lock\fP" .nr bi 1 .Pp 鎖定裝載好的介質(手動卸載) .IP "\fI-m, --mountonly\fP" .nr bi 1 .Pp 只進行裝載/卸載(不執行任何內容) .IP "\fI-n, --notify=STRING\fP" .nr bi 1 .Pp 如果換盤則執行命令STRING (預設為"/usr/bin/kfmclient refreshDesktop") .IP "\fI-t, --notify-insert=STRING\fP" .nr bi 1 .Pp 如果插入盤片則執行命令STRING,就不執行"/autorun"以及用 --autorun指定了的內容 (預設為"/usr/bin/kfmclient openURL %P%") .IP "\fI-e, --notify-eject=STRING\fP" .nr bi 1 .Pp Command STRING that will executed if a CD was ejected 如果取出盤片則執行命令STRING (預設為"") .IP "\fI-q, --quiet\fP" .nr bi 1 .Pp 不產生任何輸出 .IP "\fI-v, --verbose\fP" .nr bi 1 .Pp 產生詳細的輸出 .IP "\fI-?, --help,\fP" .nr bi 1 .Pp 列出此幫助信息 .IP "\fI--usage\fP" .nr bi 1 .Pp 列出一份簡要用法信息 .IP "\fI-V, --version\fP" .nr bi 1 .Pp 列出程式版本 .if \n(ll>1 .RE .nr ll -1 .Pp 長選項所有的強制或可選參數也適合任何相應的短選項。 .SH 作者 .Pp .DS .sp .ft RR .nf 主要作者: =============== Harald Hoyer E-Mail: Harald.Hoyer@redhat.de autorun@parzelle.de HTTP: http://parzelle.de/ .DE .fi .ec .ft P .sp .SH "[中文版維護人]" .B meaculpa .SH "[中文版最新更新]" .BR 2001/03/26 第一版 .SH "《中國Linux論壇man手冊頁翻譯計劃》:" .BI http://cmpp.linuxforum.net