Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::Runnable::Script.
Script runnable.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#path
def path() -> ::String
-
(::String) — Script file path on the host VM.
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
.
#path=
def path=(value) -> ::String
-
value (::String) — Script file path on the host VM.
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
.
-
(::String) — Script file path on the host VM.
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
.
#text
def text() -> ::String
-
(::String) — Shell script text.
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
.
#text=
def text=(value) -> ::String
-
value (::String) — Shell script text.
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
.
-
(::String) — Shell script text.
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
.