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