Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer 1

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:".

share|improve this answer
    
Yes. It is very easy. –  Z77 Jan 27 '12 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 –  Sam Jun 19 '12 at 14:02
    
Sam can you post a new question on GISse please, thanks –  Mapperz Jun 19 '12 at 14:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.