This file records the current command being processed by the shell program
The status file is created by V12Shell if it does not already exist.
The file has three lines:
Line 1: Current / final status code (numeric)
Line 2: Additional status information
Line 3: Additional status text
Line1: Current / final status code (numeric)
Single numeric value. Possible values:
0 = In progress
1 = Completed (no errors)
2 = Completed (with warnings - see error file)
3 = Terminated with errors
4 = Terminated by calling process (status file deleted)
The final status code is also returned to the caller in V12Shell’s exit code.
Lines 2 & 3: Additional status information
The content of the additional status lines depends on whether the script is still in progress or has terminated / completed (see previous section).
Script In progress
The status file is updated every time a new command is executed in the script file.
The content of the status file is as follows:
Line 1: 0 - in progress
Line 2: n - line number in original script file
Line 3: cmd - command currently executing
The command (cmd) is the actual command (after arguments and environments have been substituted). This line starts with the date & time that the command was executed and it contains the full path to the exe.
Example script:
HDR1=UserProfiles\%2
HDR2=Errors\%1.err
HDR3=Status\%1.sts
IMPORT.EXE %INPUT% /AUTO /PARTS /FORMAT:8 /NOWRTBRD /OVERWRITE
BATCH.EXE %INPUT% /AUTO /OPTIMISE
SAWLINK.EXE /AUTO /SAWPATH=C:\Temp\ /TRANSMODE=11 /CADMATIC=CAD5
SAWLINK.EXE /AUTO /SAWPATH=C:\Temp\ /TRANSMODE=6 /CADMATIC=CAD5
OUTPUT.exe /EXPORT /REPORTS=J /EXPORTPATH=C:\Temp\
When executing the line in bold, the status file might be:
0
4
20-Jan-20, 17:21:46 (506), c:\v12Shell\programs\IMPORT.EXE "Parts PTX import" /AUTO /PARTS /FORMAT:8 /NOWRTBRD /OVERWRITE
Script completed / terminated
Lines 2 & 3 act as a further explanation of an error condition (i.e code 3 in status line 1).
Line 2: Single numeric value
Line 3: Content depends upon line 2
Ranges for values in line 2 are:
0 - 99 V12Shell initialisation errors / script errors
100+ Child application errors
|
[Line] = Line number in script file
<contents> = Contents of script line