in reply to sending a control signal to a scanner

the control-d works from the command-line operation of scanimage

IIUC, hitting Ctrl-D doesn't send a Ctrl-D character, but closes the file:

$ cat > file <press ^D> $ cat file $ _

This results in a file 0 bytes long. So, have you tried to close the filehandle instead of trying to send it a Ctrl-D?

--
David Serrano

Replies are listed 'Best First'.
Re^2: sending a control signal to a scanner
by zentara (Cardinal) on Aug 01, 2006 at 20:35 UTC
    You are right!. "close WRITE"; did it. Of course I have to clean up the ERROR filehandle which then goes bezerk in the fileevent. Thanks.

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum