That part:
echo "{@@##}RETURN_REAL_STATUS_SCRIPT=${?}"
Just prints:
{@@##}RETURN_REAL_STATUS_SCRIPT=x
where the last `x` is replaces by the value of variable `$?`. From the bash manpage:
? Expands to the exit status of the most recently executed foreground pipeline.
That means that `$?` contains the exit code of the previously executed command: `$INTERFACE_D/bin_cm/deg/lance_deg`, which can be a digit from `0`; for success and `1` or geather for an error.
See this:
$ ls file
file
$ echo $? # 0 indicates success
0
$ ls file_not_exist
ls: cannot access file_not_exist: No such file or directory
$ echo $? # >0 is an error
2