BBC.SHARED.JOBI.TEMPFILE-START

Summary

Object type
JOBI
Object Folder
PACKAGES/BEST-BLU/BBC.SHARED/SOURCE/TEMPFILES
Title
Marks the start for the content of a temporary file
Archive Key 1
-
Archive Key 2
-
Created
Andreas Büsching am: 2020-09-09 15:29:00
Last Modified
Andreas Büsching am: 2021-04-22 06:40:36 14 x
Last Used
-

Description

This include creates a temporary file and sets the start point for the content. All following lines define the content until the include BBC.SHARED.JOBI.TEMPFILE_END is used.

Requirements

  • Unix: bash, cat
  • Windows: Powershell 7.0

Parameter

Input

Output

Unix

$bbcs_temp_file
script variable containing the name of the temporary file

Windows

$bbcs_temp_file
powershell variable containing the name of the temporary file

Example

:include BBC.SHARED.JOBI.TEMPFILE-START
This is
the content
of the
temporary file
:include BBC.SHARED.JOBI.TEMPFILE-END

Process

:switch &$PLATFORM#
:  case "UNIX"
bbcs_temp_file=$(mktemp)
cat > $bbcs_temp_file << EOF
:  case "WINDOWS"
$bbcs_temp_file = New-TemporaryFile
@'
:endswitch