Re: [cgiwrap-users] forking not allowed?
Brought to you by:
nneul
From: Nathan N. <nn...@um...> - 2001-11-15 00:17:45
|
Ralph Huntington wrote: > > I don't think he's using php; it's a perl script. I think he's just got > a > perl usage issue. He makes a system call, but does nothing with it -- or > so it seems. He needs to capture the result of the system call. There's nothing wrong with that, except maybe an output buffering timing issue, and running under cgiwrapd should eliminate that as a problem. If he's not getting output w/ cgiwrapd, there is something wrong with the machine, that is not a cgiwrap issue. I don't see any output from the script in those commands - he should be getting at least the content-type header output, although it may still be buffered. > On Wed, 14 Nov 2001, Neulinger, Nathan wrote: > > > Hacking around things should not be needed. Something is wrong with > the > > setup on that machine if regular forks/system/etc. are not working. > > > > Do you have php configured properly, i.e. with the > --enable-discard-path > > option? > > > > -- Nathan > > > > ------------------------------------------------------------ > > Nathan Neulinger EMail: nn...@um... > > University of Missouri - Rolla Phone: (573) 341-4841 > > Computing Services Fax: (573) 341-4216 > > > > > > > -----Original Message----- > > > From: Ralph Huntington [mailto:rj...@mo...] > > > Sent: Wednesday, November 14, 2001 3:52 PM > > > To: Marten Lehmann > > > Cc: cgi...@li... > > > Subject: Re: [cgiwrap-users] forking not allowed? > > > > > > > > > Have you tried something like this > > > > > > #!/usr/bin/perl > > > $uptime = `uptime`; > > > print "Content-type: text/plain\n\n"; > > > print "$uptime"; > > > > > > Note the back-quotes around the shell-escaped command (not > > > single quotes) > > > (This is not really a cgiwrap question; it is a perl question.) > > > > > > On Wed, 14 Nov 2001, Marten Lehmann wrote: > > > > > > > Hello, > > > > > > > > even a small perl script showing the uptime is hanging: > > > > > > > > #!/usr/bin/perl > > > > print "Content-type: text/plain\n\n"; > > > > system("uptime"); > > > > > > > > I started the script in debug-mode: > > > > > > > > ... > > > > > > > > argv[0] = 'cgiwrapd' > > > > Executing '/vrmd/http/web/test.pl' > > > > Output of script follows: > > > > ===================================================== > > > > <nothing follows, but connection stays open> > > > > > > > > How can I configure cgiwrap to execute "uptime" or any > > > other command? > > > > > > > > Regards > > > > Marten > > > > > > > > _______________________________________________ > > > > cgiwrap-users mailing list > > > > cgi...@li... > > > > https://lists.sourceforge.net/lists/listinfo/cgiwrap-users > > > > > > > > > > > > > _______________________________________________ > > > cgiwrap-users mailing list > > > cgi...@li... > > > https://lists.sourceforge.net/lists/listinfo/cgiwrap-users > > > > > -- ------------------------------------------------------------ Nathan Neulinger EMail: nn...@um... University of Missouri - Rolla Phone: (573) 341-4841 Computing Services Fax: (573) 341-4216 |