I'm not sure if this is a perl, apache or windows problem, or what. But I'm completely stuck, and I'd appreciate any thoughts you might have:
I'm having trouble using the cal command (it's the unix command ported to windows) in my perl file. I'm running Apache 2.0.47 along with cygwin on XP, and the cal command is from cygutils 1.2 (or possibly 2.1.something, I'm not sure).
cal works fine at the command prompt and also when I manually translate a perl file, using /usr/bin/perl, but when I try to browse to the same perl file when it's being hosted by my apache server (and I've used both Opera and IE), the cal command doesn't work.
(in other words, apache is producing different html code than /usr/bin/perl does.)
this code:
$cal = `cal $month $year`;
print "$cal";
yields no html output when using a browsed.
I've tried a whole bunch of other "unix" commands, like date and ls, etc, in the same manner, and they've all worked.
Any ideas what is going on?
Thanks,
Jim
I'm having trouble using the cal command (it's the unix command ported to windows) in my perl file. I'm running Apache 2.0.47 along with cygwin on XP, and the cal command is from cygutils 1.2 (or possibly 2.1.something, I'm not sure).
cal works fine at the command prompt and also when I manually translate a perl file, using /usr/bin/perl, but when I try to browse to the same perl file when it's being hosted by my apache server (and I've used both Opera and IE), the cal command doesn't work.
(in other words, apache is producing different html code than /usr/bin/perl does.)
this code:
$cal = `cal $month $year`;
print "$cal";
yields no html output when using a browsed.
I've tried a whole bunch of other "unix" commands, like date and ls, etc, in the same manner, and they've all worked.
Any ideas what is going on?
Thanks,
Jim