public sealed class Runnable.Types.Script : IMessage<Runnable.Types.Script>, IEquatable<Runnable.Types.Script>, IDeepCloneable<Runnable.Types.Script>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1alpha API class Runnable.Types.Script.
The path to a script file that is accessible from the host VM(s).
Unless the script file supports the default #!/bin/sh shell
interpreter, you must specify an interpreter by including a
[shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) as the
first line of the file. For example, to execute the script using bash,
include #!/bin/bash as the first line of the file. Alternatively,
to execute the script using Python3, include #!/usr/bin/env python3
as the first line of the file.
Unless the script text supports the default #!/bin/sh shell
interpreter, you must specify an interpreter by including a
[shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) at the
beginning of the text. For example, to execute the script using bash,
include #!/bin/bash\n at the beginning of the text. Alternatively,
to execute the script using Python3, include #!/usr/bin/env python3\n
at the beginning of the text.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eRunnable.Types.Script\u003c/code\u003e class within the Google Cloud Batch v1alpha API, specifically for version 1.0.0-alpha31.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRunnable.Types.Script\u003c/code\u003e class is a sealed class used to define a script runnable, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two constructors, \u003ccode\u003eScript()\u003c/code\u003e and \u003ccode\u003eScript(Runnable.Types.Script other)\u003c/code\u003e, for creating new script instances, either empty or based on an existing one.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eCommandCase\u003c/code\u003e, \u003ccode\u003eHasPath\u003c/code\u003e, \u003ccode\u003eHasText\u003c/code\u003e, \u003ccode\u003ePath\u003c/code\u003e, and \u003ccode\u003eText\u003c/code\u003e, allowing users to specify and check for the existence of either a script file path or the script's text content.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePath\u003c/code\u003e and \u003ccode\u003eText\u003c/code\u003e properties allow the use of a shebang line at the start of the script file or text, allowing the specification of different interpreters.\u003c/p\u003e\n"]]],[],null,[]]