EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

skill syntax question

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - Cadence - skill syntax question

Rick Mattern
Guest

Fri Jul 22, 2011 7:46 pm   



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

Marcel Preda
Guest

Sun Jul 24, 2011 4:13 pm   



On Jul 22, 8:46 pm, Rick Mattern <rmatt...@inphi.com> wrote:
Quote:
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

Hi Rick,

I guess that you want something like
axlSetJobPolicyProperty( "ADEXL_mmsim_m" "jobsubmitcommand"
strcat("nc run -D -C mmsim_m_2 " axlGetAttachedJobPolicy()-
Quote:
jobsubmitcommand))

Eventually first check that axlGetAttachedJobPolicy()-
Quote:
jobsubmitcommand is not nil, otherway the strcat will fail.

Best Regards,
Marcel

elektroda.net NewsGroups Forum Index - Cadence - skill syntax question

Ask a question - edaboard.com

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony