in reply to Re^3: Inappropriate ioctl for device error on system call
in thread Inappropriate ioctl for device error on system call

The enscript command does work from the command line and in the perl script. For some reason it seems that the  == 0 or die section evaluates to the die. I do not know why considering that the other system calls work without dying. Also, I checked the $! variable after earlier system calls and the contents was already "Inappropriate ioctl for device" so it seems that this message may not be related.

Neil Watson
watson-wilson.ca

Replies are listed 'Best First'.
Re^5: Inappropriate ioctl for device error on system call
by traveler (Parson) on Dec 12, 2006 at 21:12 UTC
    In that case note that enscript may have had a non-fatal termination:
    Enscript returns value 1 to the shell if any errors were encountere +d. On successful termination, the return code is constructed from +the fol- lowing flags: 0 no errors or warnings 2 some lines were truncated or wrapped 4 some characters were missing from the used fonts 8 some characters were unprintable
    Note the On successful termination: Maybe some lines were truncated or some characters unprintable.