in reply to Block device status and script termination
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Block device status and script termination
by ambrus (Abbot) on Feb 23, 2004 at 13:51 UTC |