So, what is in @sys? I recommend inspecting the generated command before running it:
my $cmd = "pgp -ea +batchmode $dataFile @sys"; warn "Running [$cmd]" if $verbose; $isEncrypted = `$cmd`;
Most likely, things in @sys need double quotes.
In reply to Re: PGP encryption command not working thru Perl Backticks
by Corion
in thread PGP encryption command not working thru Perl Backticks
by newperlmonkey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |