Script action in windows
Hi all,
How to execute script action in windows server. I have a search query that executes on windows server. I want to use the search query result for further use. I came to know we can use Script action, but how to in windows. Let me know if any sample code is available.
Thank you.
-
Just submitted a similar question to support. It seems to be overly complicated. The file can be in the sumo folder (so they know where it is), and Linux wouldn't care about the extension, so you don't need to select the executable. Why can't I write content for windows and Linux, call the script the same name so idk, restart_something.bat on windows would be a bat file but on Linux would have /bin/bash in the file at the top and would execute appropriately. Why is it language specific anyway?
-
You could in theory run the same script on a windows and linux box, if you used python for example. At the end of the day it is a question of what interpreters are available and how environment variables are set. Most folks will invoke custom scripts from bash or powershell for simplicity reasons but with the right environment variables set you can certainly invoke the scripts directly.
Hope this helps
Olaf
Please sign in to leave a comment.
Comments
3 comments