@echo off ;%%BUNet (requires "rlogin <hostname>" before "login:")
@if "%HostName%"==""
@   echo "\r\n** Error(bunet.scn): Host Name must be set in Options/Script Settings... dialog box.
<
@endif

@if not @wait ":" 10
@    echo "\r\n** Error(bunet.scn): BUNet connect prompt not received\r\n"
<
@endif
@send "rlogin %HostName%\r"

@if not @wait "\n" 3
@    echo "\r\n** Error(bunet.scn): BUNet failed to respond to rlogin\r\n"
<
@endif

