Skip to Main Content

Passing FDMEE parameters to Shell script in Jython

JanGLiApr 11 2017 — edited May 19 2017


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/ %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/ ' + varLoc

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

Kindly help what should i do.


This post has been answered by JanGLi on May 19 2017
Jump to Answer
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked due to inactivity on Jun 16 2017
Added on Apr 11 2017