Search code examples
openedgeprogress-4gl

How to running Shell scrpit with parameter in progress-4gl


I'm having trouble running a shell script command in progress-4gl.

I have an A.xml file and the shell script moveXml.sh is used to FTP move the A.xml file from a Linux server to a window server.

my shell script needs 1 (one) parameter = </filename ex: A.xml> to work.

Below is my syntax to run moveXml.sh in progress-4gl.

OS-COMMAND COLD VALUE ("moveXml.sh").

But I can't pass the parameters.

How to pass parameters to moveXml.sh. please help me.


Solution

  • When using os-command you can use value, you pass the entire command line:

    os-command value( 'moveXml.sh A.xml' ).