Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing FDMEE parameters to Shell script in Jython

JanGLiApr 11 2017 — edited May 19 2017

Hi,

I am writing a custom script which is calling my linux shell script with argument. My shell script will then create a folder with the argument name.

This is my custom jython script

varLoc = fdmContext["LOCNAME"]

os.system('. /home/oracle/Desktop/test.sh %s' % (varLoc))

The name of folder should be "123_test" but instead it was "None".

I barely know python and jython but my guess is that that we should pass string variable not nonetype variable.

Earlier i get this error:

TypeError: cannot concatenate 'str' and 'NoneType' objects

for this script:

varLoc = fdmContext["LOCNAME"]

varcommand = '. /home/oracle/Desktop/test.sh ' + varLoc

My main goal is to pass my location and my period to my shell script.

Kindly help what should i do.

Regards

This post has been answered by JanGLi on May 19 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details