摘要: 目录下面每天都在接收文件,但是处理完就删除了 想记录一下目录下每天收到的文件以及时间,就用到了inotifywait这个命令 inotifywait mrq o tmp.log timefmt %y/%m/%d %H:%M format %T %w%f %e event create exclude 阅读全文
posted @ 2020-03-27 18:15 twokittens 阅读(173) 评论(0) 推荐(0) 编辑
摘要: inotify-tools 是为linux下inotify文件监控工具提供的一套c的开发接口库函数,同时还提供了一系列的命令行工具,这些工具可以用来监控文件系统的事件。 inotify-tools是用c编写的,除了要求内核支持inotify外,不依赖于其他。inotify-tools提供两种工具,一 阅读全文
posted @ 2020-03-27 18:03 twokittens 阅读(238) 评论(0) 推荐(0) 编辑