Execute bash Script on midserver itself and updates the workflow

Mani Pidisetty
Kilo Contributor

Hello Community,

I am trying to execute the bash script on the midserver itself not on any target host from midserver, captures the output to activity and use as input to workflow execution (Orchestration). How to accomplish this ?. Is there any default activity which i can able to make use of ?. Thanks in Advance 

 

Thank you,

Mani

1 REPLY 1

kklosterman
Giga Guru

I don't have a direct answer for you, but have some decent links to share that can get you started.

 

I would look at either combining these two links

http://www.john-james-andersen.com/blog/service-now/javascriptprobe-and-mid-server-script-includes.h...

https://stackoverflow.com/questions/13707519/running-a-bash-shell-script-in-java

 

 

or 

 

http://www.john-james-andersen.com/blog/service-now/command-line-execution-with-servicenow-mid-serve...

 

Hope that helps 🙂