John Lin wrote: > Hi list, > > I have written a perl CGI script that basically executes a system > command via an open command like so: > > open (COMHANDLE, '/usr/local/bin/gpg --no-tty --list-keys |') or die > "can not list keys \n"; > print <COMHANDLE>; > close (COMHANDLE) or die "can not close COMHANDLE \n"; > > For some reason, if I run this CGI script in the command line, it > executes correctly (I get a list of keys in the shell). > But when i try to run this script in a browser, nothing is printed in > the borwser.
Hi John, I think it's highly unlikely that the problem is in the lines you sent. How are you opening your output to the browser? How are you getting input or the rquest from the browser? I think we need to see the whole script to be able to help you much. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]