autorun 中文man頁面
名字
autorun - 自動裝載/卸載CDROMs并在裝載后執(zhí)行/path/to/cdrom/autorun
總覽
autorun [-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...]
描述
autorun自動識別系統(tǒng)上所有可獲得的CDROMs,在插入CD時載裝它們,并執(zhí)行CD上可能包含的'autorun'可執(zhí)行文件。要讓普通用戶使用這樣的功能,你必須在/etc/fstab中想要使用的CDROMs條目上加入選項user,exec。
你也可以在KDE中使用Autorun.kdelnk。只要把它放到你的 Autostart文件夾中即可。
程序分析命令字串并用裝載點路徑來替換%P%參數(shù)。用設(shè)備路徑來替換%D%。然后就用/bin/sh -c "command string"來執(zhí)行命令字串;
選項
- -a, --autorun=EXEC
-
如果換CD盤的話執(zhí)行EXEC。該可執(zhí)行文件必須位于CD盤上。例如,如果你指定"--autorun=myprogram",而你的CD盤裝載到了 /mnt/cdrom下的話,在換盤后,autorun會嘗試運行 "/mnt/cdrom/myprogram"。 (缺省為"/autorun")
- -c, --cdplayer=CDPLAYER
-
如果插入的是唱片的話,運行CDPLAYER (缺省為"/usr/bin/kscd")
- -i, --interval=MILLISEC
-
每次檢查之間間隔MILLISEC (缺省為1000000)
- -l, --lock
-
鎖定裝載好的介質(zhì)(手工卸載)
- -m, --mountonly
-
只進行裝載/卸載(不執(zhí)行任何內(nèi)容)
- -n, --notify=STRING
-
如果換盤則執(zhí)行命令STRING (缺省為"/usr/bin/kfmclient refreshDesktop")
- -t, --notify-insert=STRING
-
如果插入盤片則執(zhí)行命令STRING,就不執(zhí)行"/autorun"以及用 --autorun指定了的內(nèi)容 (缺省為"/usr/bin/kfmclient openURL %P%")
- -e, --notify-eject=STRING
-
Command STRING that will executed if a CD was ejected 如果取出盤片則執(zhí)行命令STRING (缺省為"")
- -q, --quiet
-
不產(chǎn)生任何輸出
- -v, --verbose
-
產(chǎn)生詳細的輸出
- -?, --help,
-
列出此幫助信息
- --usage
-
列出一份簡要用法信息
- -V, --version
-
列出程序版本
長選項所有的強制或可選參數(shù)也適合任何相應(yīng)的短選項。
作者
主要作者: =============== Harald Hoyer E-Mail: Harald.Hoyer@redhat.de autorun@parzelle.de HTTP: http://parzelle.de/
#p#
NAME
autorun - automatically mounts/unmounts CDROMs and executes /path_to_cdrom/autorun after mounting
SYNOPSIS
- autorun [-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...]
DESCRIPTION
autorun automagically recognises all available CDROMs in your system, mounts them upon insertion and executes a possible 'autorun' executable on the CD. To allow an ordinary user to do this you have to add the options user,exec in /etc/fstab to the CDROMs you want to use.
Command strings are parsed and %P% is replaced by the mountpoint path. %D% is replaced by the device path. After that the command string will be executed using /bin/sh -c "command string";
OPTIONS
- -a, --autorun=EXEC
- Execute EXEC, if the CD changes. This executable must be located on the CD. I.e. if you specify "--autorun=myprogram", and your CD is mounted under /mnt/cdrom, after the CD is changed, autorun will attempt to run "/mnt/cdrom/myprogram". (default "/autorun")
- -c, --cdplayer=CDPLAYER
- Run CDPLAYER, if an audio CD is inserted (default "/usr/bin/kscd")
- -i, --interval=MILLISEC
- The time to wait in MILLISEC between checks (default 1000)
- -l, --lock
- Lock the mounted media (unmount by hand)
- -m, --mountonly
- mount/unmount only (do not execute anything)
- -n, --notify=STRING
- Command STRING that will executed if the CD changes (default "/usr/bin/kfmclient configureDesktop")
- -t, --notify-insert=STRING
- Command STRING that will executed if a CD was inserted and the autorun executable "/autorun" or the one specified with --autorun was NOT executed. (default "/usr/bin/kfmclient openURL %P%")
- -e, --notify-eject=STRING
- Command STRING that will executed if a CD was ejected (default "")
- -q, --quiet
- Don't produce any output
- -v, --verbose
- Produce verbose output
- -?, --help
- Give this help list
- --usage
- Give a short usage message
- -V, --version
- Print program version
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.
AUTHOR
Harald Hoyer <Harald.Hoyer@redhat.de>
There is a project web page at parzelle.de: http://parzelle.de/.