skill syntax question

Discussion in 'Cadence' started by Rick Mattern, Jul 22, 2011.

  1. Rick Mattern

    Rick Mattern Guest

    I am trying to create a script that will work with ADEXL's job
    policies and the script needs to build
    the command line.

    Whats the correct syntax to put the 2 two togther?

    This will get the command field

    axlGetAttachedJobPolicy()->jobsubmitcommand


    and lets say it has the following:
    -J newJob

    This line will replace the jobsubmitcommand:

    axlSetJobPolicyProperty( "ADEXL_mmsim_m" "jobsubmitcommand" "nc run -D
    -C mmsim_m_2 " )

    I need it to look like this:

    axlSetJobPolicyProperty( "ADEXL_mmsim_m" "jobsubmitcommand" "nc run -D
    -C mmsim_m_2 -J newJob " )

    so how can I put the 2 togther? strcat or something? It looks
    like axlSetJobPolicyProperty() will not evaluate any variable .

    Thanks
     
    Rick Mattern, Jul 22, 2011
    #1
  2. Rick Mattern

    Marcel Preda Guest

    Hi Rick,

    I guess that you want something like
    axlSetJobPolicyProperty( "ADEXL_mmsim_m" "jobsubmitcommand"
    strcat("nc run -D -C mmsim_m_2 " axlGetAttachedJobPolicy()-
    Eventually first check that axlGetAttachedJobPolicy()-
    Best Regards,
    Marcel
     
    Marcel Preda, Jul 24, 2011
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.