I have a script that does several functions, one of which is decrypt a file. We previously used PGPCmdLine, but need to switch to GnuPG (GPG) v1.2. We are running on W2K Server using Perl 5.8.
The specific line in question is:
This code reads in the appropriate passphrase from an external file to decrypt a source file.
When I run the script from the command line, all is well. However, this script needs to be called from a Windows Scheduled Task. When running from the Scheduled Task, the script aborts when it reaches the above code.
Note: The same user is utilized from the command line and from the Scheduled Task.
Any ideas? I am thinking the "<" is causing the problem, but not sure why or how to fix.
The specific line in question is:
Code:
$status = system($gpg, "--passphrase-fd", "0", "$some_dir\\$some_file", "<", "$another_dir\\Passphrase.txt");
When I run the script from the command line, all is well. However, this script needs to be called from a Windows Scheduled Task. When running from the Scheduled Task, the script aborts when it reaches the above code.
Note: The same user is utilized from the command line and from the Scheduled Task.
Any ideas? I am thinking the "<" is causing the problem, but not sure why or how to fix.