文件名称:runonchange:我的bash脚本的Golang端口,可为我运行内容
文件大小:890KB
文件格式:ZIP
更新时间:2024-04-03 21:47:29
Go
更改时运行命令 概述 当某些文件系统甚至更改了给定文件路径时,运行任意命令 安装 $ go get github.com/jzacsh/runonchange 用法 $ runonchange help Runs COMMAND everytime filesystem events happen under a DIR_TO_WATCH. Usage: COMMAND [-cdR] [-w WAIT_DURATION] [-i|-r FILE_PATTERN] [DIR_TO_WATCH, ...] Description: This program watches filesystem events under DIR_TO_WATCH. When an event occurs, there is an associated file that cause