Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Inside of a IIS5 cgi application I run a system call
This app has been moved to IIS6 and the above call fails silently (also with backtics). In a futile attempt to gain some insight as to is going on, I changed the system to an opensystem($prg);
When run I die and get "Bad file discriptor" in $! on the open statment. This works in IIS5 and Apache, not IIS6. I'm not a windows user and I'm not really sure where to go next. I'm not sure what to make of the 'bad file discriptor' message, and was wondering what was wrong with my use of open, or if any one knew why IIS6 has decided to change the rules? (and what those new rules might be)open (POO, "logfile") or die "Can't open logfile: $!"; my $PRG = "someprg.bat |"; print POO $PRG; open (HUH, $PRG) or die "Can't run someprg.bat: $!"; while (<HUH>) { print POO $_; }
PS using XML::ApacheFOP was suggested but I have no control over the server, and was hoping for something I could do remotly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: open under windows IIS6
by BrowserUk (Patriarch) on Feb 27, 2006 at 22:39 UTC | |
|
Re: open under windows IIS6
by ikegami (Patriarch) on Feb 27, 2006 at 21:19 UTC |