source vars.exp
source procs.exp
initialise
if {$env(TTA_CONNECTIONSERVICE) != "shell" && $env(TTA_CONNECTIONSERVICE) != "exec" && $env(TTA_CONNECTIONSERVICE) != "rcmd"} {	
    login
    startshells
} else {
    # For the exec and shell services there is no interaction
    # therefore we ensure prompt detection always succeeds by
    # matching anything
    set prompts(prompt) ""
    expect *   
}
setupenv
buildcommand
auxwincommands
runmaincommand