HP3000-L Archives

April 1997, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Greg Chaplin <[log in to unmask]>
Reply To:
Greg Chaplin <[log in to unmask]>
Date:
Tue, 22 Apr 1997 13:49:40 +1000
Content-Type:
text/plain
Parts/Attachments:
text/plain (50 lines)
> I m using Reflection for DOS.  The below command file will log
> on, download three files, log off.
>
>         WAIT FOR "CON-MGR>"
>         TRANSMIT "CONNECT ATC^M"
>         WAIT 0:0:10 FOR "ATC:"
>         TRANSMIT "HELLO USER/PASSWORD.SGAII^M"
>         WAIT 0:0:02 FOR "^Q"
>         RECEIVE C:\UNIMAX01.WURPTS ascii delete
>         WAIT 0:0:02 FOR "^Q"
>         RECEIVE C:\UNIMAX02.WURPTS ascii delete
>         WAIT 0:0:02 FOR "^Q"
>         RECEIVE C:\UNIMAX03.WURPTS ascii delete
>         TRANSMIT "BYE^M"
>
> Questions are...
>
> 1. Security issue.  Any way to get around having that
>    password embedded in my command file?

Use the RCL command ACCEPT to prompt the user for the password into a
variable, and then transmit that variable for the password.  For
example,
    ACCEPT v0 until full limit 8 noecho
    TRANSMIT "HELLO USER/$0.SGAII^M"

> 2. What s the command to get me back to the DOS
>    prompt?  I would do an <alt-X> to return to the
>    DOS prompt, but I can t find the right keys to use
>    in the final TRANSMIT command.

If you want to get back to the DOS prompt, I presume that you will be
exiting Reflection, so use the RCL command EXIT or HARDEXIT.  You can
optionally add an errorlevel.  The manual says that EXIT and HARDEXIT
do not close the connection to the HP3000 so either add a command
SET DISCONNECT-ON-EXIT YES
or add commands to close the connection.

Hope this answers your questions.  I presume that you don't have
access to a Reflection manual to look these up?  You can also get
help by going to the Reflection command line (Alt-Y I think) and
typing HELP, or HELP <keyword>, to get online help.

Greg Chaplin
UniSuper
Level 28, 367 Collins St,      Email: [log in to unmask]
Melbourne 3000,                Phone: +61 3 9648 4145
Australia.                     Fax:   +61 3 9648 4141
(Any opinions expressed here are not necessarily my employer's)

ATOM RSS1 RSS2