Re: [CODE4LIB] calling another webpage within CGI script

2009-11-24 Thread David Pattern
of Huddersfield From: Code for Libraries [code4...@listserv.nd.edu] On Behalf Of Ken Irwin [kir...@wittenberg.edu] Sent: 23 November 2009 19:41 To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] calling another webpage within CGI script Hi Joe, That's really

Re: [CODE4LIB] calling another webpage within CGI script

2009-11-24 Thread Greg McClellan
Hi, I had a similar problem a while back which was solved by disabling SELinux. http://www.crypt.gen.nz/selinux/disable_selinux.html -Greg

Re: [CODE4LIB] calling another webpage within CGI script - solved!

2009-11-24 Thread Graham Stewart
. Thanks to everyone who helped -- I learned a lot. Joys Ken -Original Message- From: Code for Libraries [mailto:code4...@listserv.nd.edu] On Behalf Of Greg McClellan Sent: Tuesday, November 24, 2009 10:04 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] calling another webpage within

Re: [CODE4LIB] calling another webpage within CGI script - solved!

2009-11-24 Thread Ross Singer
On Tue, Nov 24, 2009 at 11:18 AM, Graham Stewart graham.stew...@utoronto.ca wrote: We run many Library / web / database applications on RedHat servers with SELinux enabled.  Sometimes it takes a bit of investigation and  horsing around but I haven't yet found a situation where it had to be

Re: [CODE4LIB] calling another webpage within CGI script - solved!

2009-11-24 Thread Graham Stewart
An interesting topic ... heading out to cast vote now. In our environment, about 6 years ago we informally identified the gap (grey area, war, however it is described) between server / network managers and developers / Librarians as an obstacle to our end goals and have put considerable

[CODE4LIB] calling another webpage within CGI script

2009-11-23 Thread Ken Irwin
Hi all, I'm moving to a new web server and struggling to get it configured properly. The problem of the moment: having a Perl CGI script call another web page in the background and make decisions based on its content. On the old server I used an antique Perl script called hcat (from the

Re: [CODE4LIB] calling another webpage within CGI script

2009-11-23 Thread Vishwam Annam
Ken, The difference is when you run through command script you are executing the file as /owner/ and as /Other/ when you access it through the browser. Looking at the error message you sent, I believe it might not be executing the complete script. Try setting permissions as 707 or 777 to

Re: [CODE4LIB] calling another webpage within CGI script

2009-11-23 Thread Matt Jones
Hi Ken, This may be obvious, but when running from the command line, stdout and stderr are often interleaved together, but on the web server you see stdout in the browser and stderr in the web server error log. Your script is probably exiting with an error either at the 'get' line (line 6) or at

Re: [CODE4LIB] calling another webpage within CGI script

2009-11-23 Thread Roy Tennant
Ken, I tested your script on my server and it also worked for me on the command line and failed via my web server. All I did was add /usr to your path to perl and it worked: #!/usr/bin/perl Roy On 11/23/09 11/23/09 € 8:17 AM, Ken Irwin kir...@wittenberg.edu wrote: Hi all, I'm moving to a

Re: [CODE4LIB] calling another webpage within CGI script

2009-11-23 Thread Joe Hourcle
On Mon, 23 Nov 2009, Ken Irwin wrote: Hi all, I'm moving to a new web server and struggling to get it configured properly. The problem of the moment: having a Perl CGI script call another web page in the background and make decisions based on its content. On the old server I used an antique