Refer to: http://blog.chinaunix.net/u2/60913/showart_1076685.html
2013-10-14 10:17
357 查看
1.Introduction
Refer to http://en.wikipedia.org/wiki/Udev
2. How to write the rules:
Refer to http://www.reactivated.net/writing_udev_rules.html#syntax
3.Issues:
(1) ACTION=="add", KERNEL=="lp[0-9]",PROGRAM="/home/ms1/bin/find_printer.sh"
This rule is to run the script after detect the add event, and then load the printer.
How to change it to load the printer and then run the script?
4.Some command
udevadm monitor: get the udev events
udevadm monitor --env
Refer to http://en.wikipedia.org/wiki/Udev
2. How to write the rules:
Refer to http://www.reactivated.net/writing_udev_rules.html#syntax
3.Issues:
(1) ACTION=="add", KERNEL=="lp[0-9]",PROGRAM="/home/ms1/bin/find_printer.sh"
This rule is to run the script after detect the add event, and then load the printer.
How to change it to load the printer and then run the script?
4.Some command
udevadm monitor: get the udev events
udevadm monitor --env
相关文章推荐
- Cordova学习教材 http://www.yiibai.com/cordova/cordova_battery_status.html
- 本文引用地址:http://blog.sciencenet.cn/blog-816706-709171.html 此文来自科学网靳远博客,转载请注明出处。
- html页面的meta标签的name和http-equiva区别
- curl --head http://www.163.com/index.html 查服务器及相关组件
- 大流量网站架构的几点认识[转:http://www.cnblogs.com/hq2008/archive/2008/04/24/1169244.html]
- http://lipingke.blog.hexun.com.tw/39367544_d.html
- 转载TortoiseSVN的使用详解1(http://www.cnblogs.com/xiaobaihome/archive/2012/03/20/2407610.html)
- 不要为谁放弃这个世界(转http://blog.ifeng.com/article/3313368.html)
- 问题 “No mapping found for HTTP request with URI [/rbiz4/uploadFile.html]” 的解决
- UNC path--转载http://www.uwplatt.edu/oit/terms/uncpath.html
- http://www.cnblogs.com/jerry19880126/archive/2012/12/14/2818187.html
- 怎样把工作和升职大计结合起来 http://www.people.com.cn/GB/shenghuo/78/113/20020801/790056.html
- sql导入导出大全(转载:http://www.delphi2007.net/DelphiVCL/html/reply_2004071017030031903.html)
- Matlab read_grib.r4 安装新方法(转自:http://blog.sina.com.cn/s/blog_9f36648b010179s7.html)
- 浅析linux内核中timer定时器的生成和sofirq软中断调用流程(转自http://blog.chinaunix.net/uid-20564848-id-73480.html)
- (转载)如何成为Java高手(http://zhidao.baidu.com/question/4272801.html?si=1)
- http://www.cnblogs.com/itnongmin/archive/2011/12/01/2271170.html取值哦,很难得
- 从copy和mutableCopy谈起(http://www.cocoachina.com/ios/20151202/14520.html)
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-str
- 全球只有4个人通关的游戏!你行吗? 转自:http://www.cnblogs.com/RuiLei/archive/2008/06/07/1215624.html