RE: [cgiwrap-users] forking not allowed?
Brought to you by:
nneul
From: Ralph H. <rj...@mo...> - 2001-11-14 22:04:46
|
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. 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 > > > |