Yes with no success ... It seems the script exits definitively.
The reason why I ask the question is because I cannot, in the same script, create new DNS server and configuring the health-check of those new DNS servers created.
Its too fast receiving back 'Protocol error detected'.
So I try to make some delay in the execution by going back enable and coming in conft just to get the one second it needs for SGOS to get Ready configuring health-check of those DNS Servers.
If I execute the script below manually in conft/ssh there is no issue at all but if I execute it via one script, it fails by finaly changing the hostname of the appliance itself :-)
dns-forwarding
edit primary
clear server
add server 1.2.3.4
exit
exit
health-check
edit "dns.1.2.3.4"
hostname myinternalserver.corp
exit
exit