Not only will syswrite not bother scanning the string for variable substitutions and such, but syswrite returns the number of bytes actualy written.
So instead of print DEST "$n" x $input; you should put in $written=syswrite(DEST,($n x $input)); and terminate when $written!=(length($n)*input)
In reply to Re: Block device status and script termination
by matija
in thread Block device status and script termination
by ghettofinger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |