0

I'm trying to run the script on the remote machine. Simple script.sh:

#!/bin/bash
dd if=/dev/zero | pv | dd of=/test.img

I want to know if it is possible to see the status of pv when I run this script from my pc on machineB ssh root@machineB 'script.sh'?

I expect to see the status of pv.

Vvojtek
  • 43
  • 6
  • If you copy the script to machineB, make it executable and start it there then you will see the data throughput on machineB, if you are allowed to write to /test.img. You do not see the throughput of the network connection to the server machineB. – Cyrus Mar 13 '23 at 12:13
  • I'm running script from my pc over ssh via machineB. Script is on machineB. – Vvojtek Mar 13 '23 at 13:14
  • compare: `dd if=/dev/zero bs=16384 | pv | dd of=/dev/null bs=16384` and `pv /dev/null` – F. Hauri - Give Up GitHub Mar 13 '23 at 13:30

0 Answers0