Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
IPA/ProcessFlow
Using the syscommand to execute gpg
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
BDell92
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5275
People Online:
Visitors:
447
Members:
0
Total:
447
Online Now:
New Topics
Lawson S3 Financials
Applying credits to open AP invoices
4/28/2025 1:26 PM
Hello, I am new to the Lawson system and after ru
Lawson S3 Financials
Lawson APIA
4/28/2025 1:22 PM
Has anybody recently installed Lawson's APIA m
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Lawson S3 Procurement
Green check marks in Lawson 9.0.1
3/20/2025 4:55 PM
Hi, How to remove green check mark on items when o
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1375
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Integration / Customization
IPA/ProcessFlow
Using the syscommand to execute gpg
Please
login
to post a reply.
3 Replies
0
Subscribed to this topic
52 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
JimY
Veteran Member
Posts: 510
3/14/2014 8:22 PM
I have flow that I am using for testing purposes and I am writing the following out to a bat file and then trying to execute it using the syscommand.
[code]
"gpg --recipient \"ING\" --output \"D:\\putty\\gpg_help.txt.gpg\" --encrypt \"D:\\putty\\gpg_help.txt\"\r\n"
"ftp -s: d:\\putty\\jimcmds 10.50.4.179"
[/code]
When it gets executed I get the message that it does not recognize gpg as a command. If I run the bat file from the command line it works fine. I have tried execution mode of automatic and cmd.exe, Is there something that I need to set up in the configuration? Has anybody tried anything similar? IPA Version 10 Windows 2008r2. Thank you.
Shane Jones
Veteran Member
Posts: 460
3/15/2014 6:17 PM
Split
I created a .vbs file in the flow with this content to use the GNU program:
Option Explicit
Dim bWaitOnReturn: bWaitOnReturn = True
Dim iWindowStyle: iWindowStyle = 7 'Minimized; active window stays active
Dim sPassphrase: sPassphrase = "yourpassphrasehere"
Dim sFileName_Output: sFileName_Output = "\\fs-Server\hr-data\FTProot\401\LOAD-401-Loan\FromVendor_ToBeProcessed\decrypted-loan-<!--agsdatetoday-->.csv"
Dim sFileName_Input: sFileName_Input = "\\fs-Server\hr-data\FTProot\401\LOAD-401-Loan\FromVendor_ToBeProcessed-ENCRYPTED\<!--FA_GPG_file_filenames-->"
Dim sCommand_Text: sCommand_Text = Chr(34) & "C:\Program Files\GNU\GnuPG\gpg.exe" & Chr(34) & "--passphrase " & Chr(34) & sPassphrase & Chr(34) & " -o " & Chr(34) & sFileName_Output & Chr(34) & " -d " & Chr(34) & sFileName_Input & Chr(34)
Dim oWiSH_Shell: Set oWiSH_Shell = CreateObject("WScript.Shell")
oWiSH_Shell.Run sCommand_Text, iWindowStyle, bWaitOnReturn
Set oWiSH_Shell = Nothing
WScript.Quit
Then after it is created I run it with this:
run \\AS-Server\c$\linte5\apps\bpm\pfrepository\PF-external-scripts\decryptfile<!--agsdatetoday-->.vbs
TIP:
You might need a pause between the two nodes because sometimes the process runs so fast that the vbs file is not saved before the system command is run... I use a javascript and then a variable assignment to pause the flow.
function startPause(mill, tdiff)
{
var lastdate = new Date();
var currdate = null;
var tdiff = 0;
do { currdate = new Date();
tdiff = currdate-lastdate; }
while(currdate-lastdate < mill);
return tdiff;
}
Then just assign a double variable like this:
startPause(60000, 0)
JimY
Veteran Member
Posts: 510
3/15/2014 8:48 PM
Split
Hi Shane,
Thank you for the response. I am not experienced in VB so I will have to look at another solution.
JimY
Veteran Member
Posts: 510
3/16/2014 5:12 PM
Split
I was able to resolve this by using "cd" to move into the directory where the executable gpg is located. Thank you.
Please
login
to post a reply.