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 v1 API class Runnable.Types.Script.
To specify an interpreter, please add a #!<interpreter>(also known as
shebang line) as the
first line of the file.(For example, to execute the script using bash,
#!/bin/bash should be the first line of the file. To execute the
script usingPython3, #!/usr/bin/env python3 should be the first
line of the file.) Otherwise, the file will by default be excuted by
/bin/sh.
To specify an interpreter, please add a #!<interpreter>\n at the
beginning of the text.(For example, to execute the script using bash,
#!/bin/bash\n should be added. To execute the script usingPython3,
#!/usr/bin/env python3\n should be added.) Otherwise, the script will
by default be excuted by /bin/sh.
[[["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 webpage provides documentation for the \u003ccode\u003eRunnable.Types.Script\u003c/code\u003e class within the Google Cloud Batch v1 API, specifically in the context of .NET development, with the most recent version listed as 2.13.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRunnable.Types.Script\u003c/code\u003e class allows for the execution of shell scripts within a batch job, offering two ways to define the script: via a file path or directly as text.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eScript\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities like deep cloning and message handling.\u003c/p\u003e\n"],["\u003cp\u003eThe class features properties \u003ccode\u003ePath\u003c/code\u003e and \u003ccode\u003eText\u003c/code\u003e, both strings, where \u003ccode\u003ePath\u003c/code\u003e specifies a file path on the host VM and \u003ccode\u003eText\u003c/code\u003e contains the script's content, and it allows specification of an interpreter via a shebang line at the beginning.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the API documented, from 1.0.0 up to 2.13.0, with links provided for each to view their respective documentation.\u003c/p\u003e\n"]]],[],null,[]]