autorun 中文man页面

系统
autorun自动识别系统上所有可获得的CDROMs,在插入CD时载装它们,并执行CD上可能包含的'autorun'可执行文件。要让普通用户使用这样的功能,你必须在/etc/fstab中想要使用的CDROMs条目上加入选项user,exec。

名字

autorun - 自动装载/卸载CDROMs并在装载后执行/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自动识别系统上所有可获得的CDROMs,在插入CD时载装它们,并执行CD上可能包含的'autorun'可执行文件。要让普通用户使用这样的功能,你必须在/etc/fstab中想要使用的CDROMs条目上加入选项user,exec。

你也可以在KDE中使用Autorun.kdelnk。只要把它放到你的 Autostart文件夹中即可。

程序分析命令字串并用装载点路径来替换%P%参数。用设备路径来替换%D%。然后就用/bin/sh -c "command string"来执行命令字串;

选项

-a, --autorun=EXEC

如果换CD盘的话执行EXEC。该可执行文件必须位于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

锁定装载好的介质(手工卸载)

-m, --mountonly

只进行装载/卸载(不执行任何内容)

-n, --notify=STRING

如果换盘则执行命令STRING (缺省为"/usr/bin/kfmclient refreshDesktop")

-t, --notify-insert=STRING

如果插入盘片则执行命令STRING,就不执行"/autorun"以及用 --autorun指定了的内容 (缺省为"/usr/bin/kfmclient openURL %P%")

-e, --notify-eject=STRING

Command STRING that will executed if a CD was ejected 如果取出盘片则执行命令STRING (缺省为"")

-q, --quiet

不产生任何输出

-v, --verbose

产生详细的输出

-?, --help,

列出此帮助信息

--usage

列出一份简要用法信息

-V, --version

列出程序版本

长选项所有的强制或可选参数也适合任何相应的短选项。

作者

主要作者:
===============

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.

 

You may also use Autorun.desktop for KDE. Just place it in your Autostart folder.

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/.

 

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-12 14:58:05

killall中文man

2011-07-15 16:58:36

ac中文man

2011-08-15 11:10:48

more中文man

2011-08-25 17:03:51

pclose中文man

2011-08-15 14:10:37

tar中文man

2011-08-16 10:42:30

rmmod中文man

2011-08-18 13:57:38

acct中文man

2011-08-23 17:49:36

zdump中文man

2011-08-15 15:10:49

wall中文man

2011-08-23 15:06:03

quotastats中文man

2011-08-15 17:35:50

ar中文man

2011-08-25 09:07:16

suffixes中文man

2011-08-18 15:21:37

autofs中文man

2011-08-25 15:19:39

dirname中文man

2011-08-25 17:34:50

setlinebuf中文man

2011-08-15 15:17:14

ac中文man
点赞
收藏

51CTO技术栈公众号