cancel
Showing results for 
Search instead for 
Did you mean: 

OS Command in File Adapter

Former Member
0 Kudos

Hi All,

I am trying to encrypt a file from XI and FTP to a different location. I am using PGP software for encryption and decryption. I am able to encrypt/decrypt the file from the OS level. The command I am using at OS level is:

pgp --home-dir /.pgp --encrypt test.txt --recipient 0xC483S9E6

If I use the same command in Sender File adapter in Run Operating System Command After Processing it is not encrypting. But I am using the same above command:

pgp --home-dir /.pgp --encrypt test.txt --recipient 0xC483S9E6

Now if I run the scenario the file is writing but it is not encrypting the file. Can you guys tell me where I am exactly going wrong.

---Korobee

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member206604
Active Contributor
0 Kudos

Hi,

Try this, write all you OS command in a BATCH file say "encrypt.bat" and then call the batch script from File adapter. Also make sure you are giving the full path for all the files that you are refering to like

\serverfolderpgp --home-dir /.pgp --encrypt \serverfoldertest.txt --recipient 0xC483S9E6

Any more help let me know.

Thanks,

Prakash