home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
esker
/
emul.1
/
EMUL.ARC
/
SYSADMSH.MAC
< prev
next >
Wrap
Text File
|
1994-07-27
|
984b
|
48 lines
# Characters sent by Host computer not displayed
Hide
# Start
Label BEGIN
# Read login and password
ReadVar "Enter your user name : " USER
ReadPasswd "Enter your password : " PASSWD
# Make connection
Repeat 3
# Send carriage-return character
Repeat 5
SendAndReceive 1 "\n" "ogin"
Pause 1
IfNoError break
end
IfError NOCONNECTION
# Send login
SendAndReceive 15 "%USER\n" "assword" "# "
IfError continue
IfEqual "# " break
SendAndReceive 15 "%PASSWD\n" "# " "ogin:" "ERM"
IfError continue
IfEqual "# " break
# Return to start of program if login incorrect
IfEqual "ogin:" BEGIN
# Set the TERM variable if necessery
SendAndReceive 15 "\n" "# "
IfError continue
IfEqual "# " break
end
# Start application
Send "sysadmsh\n"
# Display received characters
Display
# Return to the emulator
Return
# No login
Label NOCONNECTION
Echo "Communication failed"
ReadVar "Press Return to quit" ANSWER
# Exit the emulator
exit