Script action in windows

Comments

3 comments

  • Avatar
    Andrew Angelopoulos

    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?

  • Avatar
    Olaf Stein

    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

  • Avatar
    Andrew Angelopoulos

    True. But it makes a sort of a cross-platform cheat more difficult in a way.... 

     

    Thanks

Please sign in to leave a comment.