I'm looking for a way to pipe text continuously into a process like
write. I do not want to buffer and pipe it all at once. This is my bash script so far:
#!/bin/bash for i in `seq 1 10`; do echo $i | write user done
The problem is that
write gets opened and closed
i times. Does anyone know how I can keep it alive while looping?