当前位置:网站首页>[ansible] the ansible shell encountered the problem of $symbol in awk when executing remote commands
[ansible] the ansible shell encountered the problem of $symbol in awk when executing remote commands
2022-07-28 17:27:00 【kiraraLou】
Preface
In the use of ansible coordination awk Naming times error .
The original order :
ansible presto -m shell -a "ps -ef|grep -i presto |grep -v grep|awk '{print $2}' |xargs jstack |grep JNI"
extract presto process pid Back to failure , as a result of ansible Set category awk Of $ There is a problem with the symbol
Solution :
take $ The symbols are escaped
ansible presto -m shell -a "ps -ef|grep -i presto |grep -v grep|awk '{print \$2}' |xargs jstack |grep JNI"
Or write the command as a script , Remote script execution
边栏推荐
- valarray数值库学习
- List of supplementary questions
- Linear algebra and matrix theory (IX)
- Codeforces round 770 (Div. 2) e. fair share
- 【kibana】问题整理 kibana 7.x No indices match pattern “apm-*“
- 异步电路设计--同步脉冲器原理及例题
- Verilog daily question (vl28 plus and minus counter)
- The actual combat of the beego framework of goweb development: Section III program execution process analysis
- 《Kubernetes》你需要掌握的 Service 和 Ingress
- Selection and application of capacitor in high speed circuit -- detailed explanation
猜你喜欢

Verilog daily question (vl14 vending machine 1 -- FSM common question types)

微服务架构-服务注册中心和服务网关(6.8) (转载)

MySQL数据库增删改查(基础操作命令详解)

DGL Chapter 1 (official tutorial) personal notes

Wechat applet cash red packet returns the error "the IP address is not the available IP address you set on the merchant platform". The ultimate solution

valarray数值库学习

Verilog 每日一题(VL26 简易秒表)

influxdb2的使用

带参数的微信小程序二维码生成

【impala】【报错解决】 Impala cannot read or execute the parent directory of dfs.domain.socket.path的解决方法
随机推荐
利用SQL Server代理作业对数据库进行定时还原
格雷码和二进制的转换及典型例题(4bits格雷码计数器)
MySQL详细学习教程(建议收藏)
Verilog 每日一题 (VL5 信号发生器)
Function接口之andThen
Linear algebra and matrix theory (10)
Soft exam review summary
The practice of beego framework developed by goweb: Section 4 database configuration and connection
Iris framework practice of goweb development: project summary and review
The practice of the beego framework of goweb development: Section II project initialization configuration
线性代数及矩阵论(七)
Classroom attendance system based on QT design (using RDS for MySQL cloud database)
《Kubernetes》你需要掌握的 Service 和 Ingress
Atcoder beginer contest 240 g.reporting Takahashi (classical problems of Combinatorial Mathematics)
The actual combat of the beego framework of goweb development: Section III program execution process analysis
Create a custom paging control
Verilog daily question (vl28 plus and minus counter)
The practice of beego framework developed by goweb: Section 4 database configuration and connection
全链路灰度在数据库上我们是怎么做的?
Goweb开发之Beego框架实战:第一节 Beego框架介绍