Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Note:  As of Scalr 7.2.0 and Agent 5.1.9 we have added support for cross-platform scripting with the use of a double shebang. The script runs on: 

Linux - If the first line starts with #! /*    

Windows - If the first line starts with a #!windows, #!cmd or a #!powershell  

Cross-platform - If the first line is Linux shebang, and the second line is Windows shebang following this format: `#!windows command= extension=`

Cross Platform Example:

Code Block
#!/usr/bin/env python
#!windows extension=py


Code Block
#!/usr/bin/python3
#!windows command="C:\Python35\python.exe"



Linux shebang example:

  • #!#/bin/bash

For Windows, Scalr supports the two following pseudo-Shebang lines: 

...