Need help to run python script from ServiceNow.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2019 05:36 AM
I am trying to run python script from ServiceNow. I tried a way to run Commands through Mid Server but it is not detecting python command however other windows commands run properly.
Also I tried to run a Batch file by same way which then execute python script in Local environment, but no luck.
I am not sure if I need to make any additional changes on my Windows System to allow execution of Python from through Mid Server.
Any help would be appreciated.
Thanks
Anil
Thanks
Anil Lande
- Labels:
-
Operational Intelligence
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2019 06:14 AM
You'll need to install Python on your MID servers that you intend to use.
This is probably the more OOB way to do it. You should be able to call it via a PowerShell activity using this syntax:
https://stackoverflow.com/questions/19676403/running-python-in-powershell

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2019 06:15 AM