I have 2 servers, both Fedora boxes. The old one
has Apache/2.0.47 and the new one has Apache/2.2.0
I have a cgi perl script that runs with different
behavior when executed from each of the servers:
#!/usr/bin/perl
use CGI;
my $q = new CGI; print $q->header();
system("wall no-problems!"); print "this works!"; In the first server, everything works well, it prints "this works!" and
sends a message to all terminals "no-problems!" whereas in the second server, it
prints "this works!" but no message is issued to the terminals.
If I run the script on the second sever by hand, everything works
right.
This problem means that no secondary process is triggered by the script
when executed from the web, via apache, but when executed by hand as a command
line, the secondary process is effectively triggered.
The problem is also present when the script uses a perl module, as for
example LWP to access to some other content on the web. Again it will
not work when executed from the web but it will work when executed
otherwise.
It seems that this problem is related with the user that is executing
the script, but I don't know how it can be corrected.
Any idea?
|
_______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs