Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Inappropriate ioctl for device error on system call

by traveler (Parson)
on Dec 12, 2006 at 19:39 UTC ( [id://589377]=note: print w/replies, xml ) Need Help??


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

Some more troubleshooting hints:

Does it run from the command line? If so, perl is probably not giving expected access to some filehandle.

Try tracing it with strace. You can do it from the command line if the command version fails, or from perl by adding it to the system call. It can generate a lot of output but may show what file descriptor is causing the problem.

  • Comment on Re^3: Inappropriate ioctl for device error on system call

Replies are listed 'Best First'.
Re^4: Inappropriate ioctl for device error on system call
by neilwatson (Priest) on Dec 12, 2006 at 20:19 UTC
    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

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://589377]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-23 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found