Question

Shutdown python script to terminate fme.exe


Badge +1
Hi All,

 

 

Is there any python code to include in Shutdown python script area of workbench to terminate the fme.exe.

 

 

This is required so that, when fme.exe is not exited after translation is successful message.

 

 


2 replies

Userlevel 4
Badge +13
Hallo,

 

 

I would try somethinfg like:

 

 

import os

 

 os.system("TASKKILL /F /IM fme.exe")

 

 

Itay
Badge +1
Hi Itay,

 

 

I tried using below code yesterday and it has worked for me.

 

 

import os

 

os.system("TASKKILL  /IM fme.exe /F")

 

 

Thanks for your reply.

Reply