Automic Workload Automation

  • 1.  Bash under window agent

    Posted Oct 04, 2018 09:03 PM

    Hi, Is it possible to do bash command under a windows agent?

    Instead of run a powershell, run a sh or bash

    ECPEXE="cmd /c powershell.exe"

     

    ECPEXE="cmd /c bash.exe" ECPEXE="cmd /c sh.exe"

     

    Yves Lavoie

    Programmeur-Analyste Principal

    Optimum Informatique inc.

     

    Téléphone: (514) 288-1661 x :634

    Télécopieur: (514) 288-8152

     

     



  • 2.  Re: Bash under window agent

    Posted Oct 08, 2018 12:10 PM

    There's several native ports of bash for Windows, e.g. http://win-bash.sourceforge.net. If and how they interface with the Windows file system, I don't know.

     

    There is a Linux subsystem on Windows 10 and Windows 10-style servers.

     

    And there's cygwin.

     

    I doubt anything but a native port is worth the effort to set it up if it's just about running one shell script.

     

    Also, please note the first option is strictly bash. It does not include grep, awk or whatever else your shell script may (or may not) call, though there are native ports of most GNU utils, too.

     

    Hth.



  • 3.  Re: Bash under window agent

    Posted Oct 08, 2018 12:11 PM

    I have not executed bash scripts on windows servers.  We do however use PuTTY from a windows agent to execute bash scripts on remote unix servers. 



  • 4.  Re: Bash under window agent

    Posted Oct 09, 2018 02:44 AM

    Hi

     

    What about using the Bash for windows as external interpreter?

    Automic 

     

    I assume you are using any bash-port forwindows.

     

    cheers, Wolfgang