the "{tof}" within this message is actually a x0c Control V, Control L
The usage being: echo "testing" | ./driver.PR22
(echo -n "2" ; cat - | /usr/mbin/lf2crlf ; echo -n "{tof}") | lp -d PR32
gives the following error:
SH: ./driver.PR22: cannot execute binary file
and the file's permissions:
-rwxr-xr-x 1 root daemon 73 Dec 12 2000 driver.PR22
BUT.....
(cat - | /usr/mbin/lf2crlf ; echo -n "{tof}") | lp -d PR32
works fine
and it's permissions:
-rwxr-xr-x 1 root daemon 57 Dec 5 2000 driver.PR32
any idea of what is happening? why it won't execute the script?
George