BBC.SHARED.JOBI.TEMPFILE-CREATE

Summary

Object type
JOBI
Object Folder
PACKAGES/BEST-BLU/BBC.SHARED/SOURCE/TEMPFILES
Title
Creates a temporary file
Archive Key 1
-
Archive Key 2
-
Created
Andreas Büsching am: 2020-09-09 15:28:14
Last Modified
WRITER/B4A am: 2022-06-13 18:34:22 17 x
Last Used
-

Description

The include creates a temporary file.

Requirements

  • Unix: bash, mktemp
  • 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.TEMPFILE-CREATE

Process

:switch &$PLATFORM#
:case "UNIX"
bbcs_temp_file=$(mktemp)
:case "WINDOWS"
$bbcs_temp_file = New-TemporaryFile
:other
:  p "unsupported platform &$PLATFORM#"
:endswitch