etcdctl exec-watch 命令使用介绍
2017-12-06 13:08
344 查看
etcdctl exec-watch 命令可以检测某个key的值的改变,并执行相应的命令,帮助文档显示的用法:
[root@localhost ~]# etcdctl exec-watch --help
USAGE:
etcdctl exec-watch [command options] <key> <command> [args...]
但实际上应该是:
etcdctl exec-watch [command options] <key> -- <command> [args...]
也就是 <command> 之前需要添加两个 -
例如:
[root@localhost ~]# etcdctl exec-watch /hello -- /bin/echo 'hello etcd'
hello etcd
hello etcd
[root@localhost ~]# etcdctl exec-watch --help
USAGE:
etcdctl exec-watch [command options] <key> <command> [args...]
但实际上应该是:
etcdctl exec-watch [command options] <key> -- <command> [args...]
也就是 <command> 之前需要添加两个 -
例如:
[root@localhost ~]# etcdctl exec-watch /hello -- /bin/echo 'hello etcd'
hello etcd
hello etcd
相关文章推荐
- Linux学习总结(27)——CentOS7及以上系统的systemctl命令使用介绍
- linux系统中find命令之exec使用介绍
- Redis中multi,exec,watch,发布与订阅模式命令介绍笔记(9)
- watch命令使用介绍
- C/C++使用命令参数介绍
- Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍
- 文件系统管理 之 Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍
- Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍
- 转 Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍
- Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍
- 关于Linux Grep命令使用的详细介绍
- Linux RPM 命令参数使用详解[介绍和应用]
- C/C++使用命令参数介绍
- Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍
- VC CL.exe命令使用介绍
- 关于Linux Grep命令使用的详细介绍
- Linux Grep命令使用介绍
- Linux 查看磁盘分区、文件系统、使用情况的命令和相关工具介绍
- Linux Grep命令使用的详细介绍
- 关于Linux Grep命令使用的详细介绍