jholtzman has asked for the wisdom of the Perl Monks concerning the following question:
, but the answer (if anyone has one!) should be the same for any command./usr/bin/gpg -ea --always-trust -r user\@domain.com
This works great from the command line, but when I run it via the web, I get nothing. Any ideas? The entire thing is below...$encStr = `echo $plainStr | /usr/bin/gpg -ea --always-trust -r ken\@ra +ndys.com`;
THANKS!!!#!/usr/bin/perl use CGI("param"); print "Content-Type: text/html\n\n"; print "<html>\n<body>\n"; $plainStr = param("plainStr"); $encStr = `echo $plainStr | /usr/bin/gpg -ea --always-trust -r user\@d +omain.com`; print "Encrypted String = $encStr"; print "\n</body>\n</html>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get output from an external program
by BazB (Priest) on Jan 18, 2002 at 02:52 UTC | |
|
Re: Get output from an external program
by metadoktor (Hermit) on Jan 18, 2002 at 05:34 UTC | |
|
Re: Get output from an external program
by dmmiller2k (Chaplain) on Jan 18, 2002 at 08:46 UTC | |
|
Re: Get output from an external program
by jholtzman (Initiate) on Jan 23, 2002 at 14:51 UTC | |
by BazB (Priest) on Jan 23, 2002 at 15:23 UTC |