To solve this on a “quick-and-dirty” way on Unix/Linux platform:
Shell variables could be captured indirectly from a temp file on the following way:
---
- Unix JOBS Process Tab:
echo $HOSTNAME > ./res.txt
- Unix JOBS Post Process Tab:
:SET &FILE# = PREP_PROCESS_FILE(LNX_V12_VWGSUP14,"/home/uc4/res.txt",,,,)
:PROCESS &FILE#
: SET &LINE# = GET_PROCESS_LINE(&FILE#)
: PRINT &LINE#
:ENDPROCESS
---
The result is that the value of the shell variable $HOSTNAME is stored in the AE script variable &LINE#.