使用 vmstat n命令每间隔n秒不间断的输出系统状态.
而目前想把每次输出状态立即通过curl POST到一个url上.
是否可以通过管道完成?
vmstat n 管道至 curl
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- oyljerry 2015-07-06 03:31关注
You can use the -d option in curl with a @- argument to accept input from a pipe.
http://serverfault.com/questions/313599/how-do-i-pipe-the-output-of-uptime-df-to-curl
解决 无用评论 打赏 举报
悬赏问题
- ¥15 为什么我按照电路图做出的仿真和实物都不能使用
- ¥15 mars2d在vue3中的引入问题
- ¥50 h5唤醒支付宝并跳转至向小荷包转账界面
- ¥15 算法题:数的划分,用记忆化DFS做WA求调
- ¥15 chatglm-6b应用到django项目中,模型加载失败
- ¥15 CreateBitmapFromWicBitmap内存释放问题。
- ¥30 win c++ socket
- ¥15 C# datagridview 栏位进度
- ¥15 vue3页面el-table页面数据过多
- ¥100 vue3中融入gRPC-web