... [why would I] get a message about inappropriate use of ioctl in one script but not another.
Perhaps because $! is being used inappropriately in one script and not in the other. Beyond that, I must confess that I'm confused about the current state of your code and can say no more.
Give a man a fish: <%-{-{-{-<
In reply to Re^4: Should I worry about "Inappropriate ioctl for device"? (updated)
by AnomalousMonk
in thread Should I worry about "Inappropriate ioctl for device"?
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |