Skip to main content
Tweeted twitter.com/#!/StackUnix/status/180030463371517953
remove centos tag because question is not awfully restricted to centos ...
Link
maxschlepzig
  • 59.8k
  • 53
  • 224
  • 298
Source Link
Wesley
  • 14.9k
  • 12
  • 38
  • 49

How can I limit the output speed of stdout?

I'm running CentOS 5.7 and I have a backup utility that has the option of dumping its backup file to stdout. The backup file is rather large (multiple gigabytes). The target is an SSHFS filesystem. To ensure that I don't hog the bandwidth and degrade the performance of the network, I would like to limit the speed with which data is written to the "disk".

How can I limit the ability of stdout based on a byte number? For example, limiting a process's ability to write to about 768Bps.