Re: [cgiwrap-users] CGIWrap & back ticks
Brought to you by:
nneul
From: Kyle <ky...@cc...> - 2001-12-20 20:20:59
|
Thanks for the quick reply, Ralph. Here's why I think it is CGIWrap causing the problem. If I run the script from the command line it works. If I run it from http via apache via cgiwrap, the back ticks do not work (return null). If I change the virtual host in apache to be a regular old script (i.e. no cgiwrap), I can run it just fine from http via apache. I'm running cgiwrap 3.7.1 on redhat 7.1 with apache 1.3.22. Does ANYONE have any ideas on this? I'm getting desperate here. Also, the log files look like this (first line returned null, the second returned the data correctly): wfp86007 cgi-bin/path.cgi <NULL> 10.1.1.202 <NULL> ok Thu Dec 20 13:55:10 2001 wfp86007 cgi-bin/path.cgi <NULL> 10.1.1.202 <NULL> ok Thu Dec 20 14:11:23 2001 -Kyle Ralph Huntington wrote: > > I use this type of syntax in my perl scripts also and they work fine under > cgiwrap. There must be some configuration issue (or something). Sorry I > don't have a clue what that something might be, but I can say without > reservation that the "shell escaped" commands you refer to work with > cgiwrap. > > On Thu, 20 Dec 2001, Kyle wrote: > > > In my PERL scripts, I use commands like these commonly: > > $hostname = `hostname`; > > $dir = `pwd`; > > $date = `date +%c`; > > > > All of these functions return null when run under cgiwrap, but work fine > > when cgiwrap is bypassed. > > > > 1) Why don't they work under CGIWrap? > > > > 2) What can I do to get around this problem? > > > > I need these functions (and others). If it is okay for user "Kyle" to > > do these functions, then why can't my script run them under CGIWrap as > > user "Kyle"? > > > > PLEASE help me! > > > > -Kyle > > > > _______________________________________________ > > cgiwrap-users mailing list > > cgi...@li... > > https://lists.sourceforge.net/lists/listinfo/cgiwrap-users > > |