acecz 2015-07-06 03:22 采纳率: 0%
浏览 1645

vmstat n 管道至 curl

使用 vmstat n命令每间隔n秒不间断的输出系统状态.
而目前想把每次输出状态立即通过curl POST到一个url上.
是否可以通过管道完成?

  • 写回答

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