Script with 2 "-p"

Posted by Rodrigo Dias on 26-Jan-2016 10:49

Hi Guys, 

I'm having trouble with a script that uses 2 procedures in startup.

The main procedure creates the aliases from the session to second procedure uses them to run the program.

Example:

C:\dlc10\bin\prowin32.exe -b -ininame "C:\temp\progress.ini" -pf "c:\temp\progress.pf" -p "c:\temp\alias.p" -p grap\grap0020.p

Issue: Client doesn't read the alias.p file.

All Replies

Posted by Rob Fitzpatrick on 26-Jan-2016 10:57

If you specify a parameter more than once on the command line, the last one is used and the others are ignored.  You can have only one start procedure.  That makes sense, if you think about it.

If you want alias.p to run, it will have to be run by grap0020.p (or by one of its descendants).

Posted by Rodrigo Dias on 26-Jan-2016 11:00

Thank you Rob.

Posted by Lieven De Foor on 16-Mar-2016 11:24

You can use the -param option to pass any parameters to the procedure specified after -p

Your first .p should then parse the string SESSION:PARAMETER and decide what to do.

This thread is closed