Re: executing system command via browser

2003-02-16 Thread Alex
Hi John Lin, you FIRST have to print the HTTP-Headers, and THEN everything else follows. this might look a little something like this: print "Content-Type: text/html\n\n"; open (COMHANDLE, '/usr/local/bin/gpg --no-tty --list-keys |') or die "can not list keys \n"; print ; close (COMHANDLE) o

executing system command via browser

2003-02-15 Thread John Lin
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 ; close (COMHANDLE) or die "can not close COMHANDLE \n"; For some reason, if I run