passing parameters from progress to a batch or shell file

Posted by HachDev on 16-Apr-2015 05:52

Hi, can you help me to pass a parameter from a .p file to a .bat or .sh file??

All Replies

Posted by Libor Laubacher on 16-Apr-2015 06:00

DEF VAR params AS CHAR NO-UNDO.
DEF VAR batchf AS CHAR NO-UNDO.
 
params = "param1 param2 param3".
 
IF OPSYS = "UNIX"
THEN batchf = "/tmp/runneorun.sh".
ELSE batchf = "c:\temp\runeorun.bat".
 
OS-COMMAND VALUE(batchf + " " + params).
 
[collapse]
From: HachDev [mailto:bounce-HachDev@community.progress.com]
Sent: Thursday, April 16, 2015 12:53 PM
To: TU.OE.Development@community.progress.com
Subject: [Technical Users - OE Development] passing parameters from progress to a batch or shell file
 
Thread created by HachDev

Hi, ca you help me to pass a parameter from a .p file to a .bat or .sh file??

Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]

This thread is closed