![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inappropriate ioctl for device | RishiPahuja | Shell Programming and Scripting | 11 | 03-19-2008 10:47 PM |
| Inappropriate ioctl for device, format error | spoonman | SUN Solaris | 2 | 08-24-2006 01:01 PM |
| Inappropriate ioctl for device | steelrose | UNIX for Dummies Questions & Answers | 4 | 08-23-2006 11:08 AM |
| Inappropriate ioctl for device | spoonman | UNIX for Dummies Questions & Answers | 0 | 08-23-2006 10:39 AM |
| Inappropriate ioctl for device | tojaiganesh | Filesystems, Disks and Memory | 4 | 03-17-2005 05:23 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Inappropriate ioctl for device at
I am getting the error "Inappropriate ioctl for device" at croak (on 5th line inside the subroutoine given below). anybody has any idea what could be the reason for that. It do succeeds sometime and other times fail with "Inappropriate ioctl for device":
This is a subroutine in my program which is trying to use to open a telnet connection with the host. It's checking whether it already has the telnet connection, so that it doesn't open another one: sub t() { # we have a telnet session, but host doesn't respond if ($t and not scalar $t->cmd("echo hello, world")) { $self->{TELNET} = undef; #error croak "telnet poke (\"echo hello, world\") failed: ", $t->errmsg(); } if (not $t) { debug "telnet: connecting to " . $self->{HOST} . "\n"; $t = new Net::Telnet(Timeout => $self->{CMDTIMEOUT}, Errmode => 'return') or croak "telnet: new failed: $@\n"; # $t->dump_log("dump.out.$$"); $t->open(Host => $self->{HOST}, Port => 2342) or croak "telnet: open failed: $@"; # send a newline so we can look at the prompt my $oldprompt = $t->prompt("/.*:/"); $t->cmd("\n") or croak "telnet: newline failed: ", $t->errmsg(); } } Looking for some positive answers ![]() |
![]() |
| Bookmarks |
| Tags |
| inappropriate ioctl for device |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|