4

I would like start/run FME workbench from one external python script. Is there some simple syntax/command to do this?

asked Jan 23, 2012 at 11:46

1 Answer 1

5

You could do a call to os.system. Something like:

os.system workspace.fmw --arg_one --arg_two ...

Look in the Log window when you run your workspace and at the very top it will give you the command to run, it's usually in blue and says "Windows command-line to run this workspace:".

answered Jan 23, 2012 at 12:54
3
  • Yes. It is very easy. Commented Jan 27, 2012 at 13:46
  • Hi, I'm trying to run a second workspace using python command in "Shutdown Python Script" in the first workspace using the following command. I just copied what Chad has written but its giving me an error. Is there anything I need to do different? Thanks, Sam import os os.system fme.exe C:\temp\test2.fmw --SourceDataset_ARCGIS_LAYER C:\ScratchParcel\DevEnv.gdb\AddressPoint --DestDataset_SHAPE C:\temp Commented Jun 19, 2012 at 14:02
  • Sam can you post a new question on GISse please, thanks Commented Jun 19, 2012 at 14:38

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.