[mod.computers.vax] using vax psi in batch mode

macmillan%wnre.aecl.cdn%ubc.CSNET@RELAY.CS.NET (John MacMillan) (12/04/86)

help! i've just spent the last hour and a half trying to automate
an outgoing datapac call.

i want a procedure like

ENVOY.COM

$ set host/x29 12345678
name
password
scan all
bye


where
  12345678 stands for the dte-address of the envoy electronic mail service
   (i don't know if they want it broadcast widely, so i'll play safe)(

  name is the username to access the service
  password is the response to the next prompt

  scan is a command to list all messages
  bye logs off the service

It seems simple.. but fetches up immediately after the call is made.
Executing the procedure from a terminal, you see the prompt "Username?",
but you have to actually type it in from the terminal. It's as if the 
procedure was suspended at that point. (Similar to a Basic program with
an input statement.)

I've tried various combinations of ASSIGNS, DEFINES, SYS$INPUT, but
nothing works. is there something obvious being missed?

John MacMillan
Atomic Energy of Canada
Whiteshell Nuclear Research Establishment
Pinawa, Manitoba, Canada R0E 1L0

(204) 753-2311 x2539