PASOE - add directory to propath using oeprop - Forum - OpenEdge Architecture - Progress Community

PASOE - add directory to propath using oeprop

 Forum

PASOE - add directory to propath using oeprop

This question is answered

Hi,

Is there a possibility using the oeprop to add a directory to existing propath of agent ? 

Kind regards

Gerd 

Verified Answer
  • Hi Gred,
     
    I think that is not possible directly, but you can achieve that by running the following:
    1. First query the PROPATH using oeprop
    ../oeprop.sh AppServer.Agent.fiveNines1.PROPATH – It’ll give existing Propath
    1. Add your new propath entry to the existing path
    ../ oeprop.sh AppServer.Agent.fiveNines1.PROPATH=<old_value>,<new_value>
    Note: oeprop +<PROPATH> will add a new property name called PROPATH, it won’t add value to the existing PROPATH.
     
    Thanks,
    Sanjeev
     
  • Hi Gred,

    Try using the '-f' option for merging the properties. But the input it takes is another property file.

    example is : oeprop -f myfile.props

    See the article : knowledgebase.progress.com/.../PASOE-equivalent-of-mergeprop-000084179.

    search for the section : To modify a set of properties:

    Hopefully that helps.

    Thanks and Regards,

    Ram Krushna

All Replies
  • Hi Gred,
     
    Yes, you can use oeprop utility to set PROPATH. Here is a KB article which explains on how to set PROPATH using oeprop utility.
     
    Thanks,
    Sanjeev
     
  • Hi Sanjeva,

    Thank you for the response , but my question was in fact adding an entry to the propath without erasing what was in it

    eg.  

    oeprop <.......PROPATH>=c:\temp

    add an entry to propath with oeprop so that we get c:\temp,c:\temp\test

    I hoped the oeprop +<.......PROPATH> would do something like that

    there are some defaults that are already in the propath (after creating the instance with pasman create)  that we want to keep, but we want to add our proper entries to it also

  • Hi Gred,
     
    I think that is not possible directly, but you can achieve that by running the following:
    1. First query the PROPATH using oeprop
    ../oeprop.sh AppServer.Agent.fiveNines1.PROPATH – It’ll give existing Propath
    1. Add your new propath entry to the existing path
    ../ oeprop.sh AppServer.Agent.fiveNines1.PROPATH=<old_value>,<new_value>
    Note: oeprop +<PROPATH> will add a new property name called PROPATH, it won’t add value to the existing PROPATH.
     
    Thanks,
    Sanjeev
     
  • Hi Gred,

    Try using the '-f' option for merging the properties. But the input it takes is another property file.

    example is : oeprop -f myfile.props

    See the article : knowledgebase.progress.com/.../PASOE-equivalent-of-mergeprop-000084179.

    search for the section : To modify a set of properties:

    Hopefully that helps.

    Thanks and Regards,

    Ram Krushna

  • Thanks Ram, that works

    It also works like this 

  • Just wanted to highlight that oeprop -f will not merge values from the input properties file but rather will overwrite the instance's values with those from the file (ie a destructive write).

    The approach @gdb390 shows is how you have to do it today (store in an intermediary variable).