.key unit/A,startcmd/A,host/A,ip/A
.bra {
.ket }

; $VER: tstdinit 1.40 (17.3.96)
; Start up telser unit and calls startup command

tsctl -s {unit} ; start the telser unit
set rc2 $rc     ; save return code

if $rc2 eq 0    ; did unit open okay?
    run execute >NIL: <NIL: {startcmd} {unit} {host} {ip}
endif

quit $rc2       ; return result code to caller
