Which may mean the "problem" (or rather, the fix) lies in said program - not in your small script.
Considering this is a networking program - perhaps netdiag is expecting $CR$LF as line endings, not just $CR (why $CR there, not $LF?). It hasn't seen a full line yet, so it's not going to write anything.
In reply to Re^3: Networking without a network
by JavaFan
in thread Networking without a network
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |