Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!RELAY.CS.NET!macmillan%wnre.aecl.cdn%ubc.CSNET
From: macmillan%wnre.aecl.cdn%ubc.CSNET@RELAY.CS.NET (John MacMillan)
Newsgroups: mod.computers.vax
Subject: using vax psi in batch mode
Message-ID: <656*macmillan@wnre.aecl.cdn>
Date: Thu, 4-Dec-86 09:21:14 EST
Article-I.D.: wnre.656*macmillan
Posted: Thu Dec  4 09:21:14 1986
Date-Received: Fri, 5-Dec-86 20:50:43 EST
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 39
Approved: info-vax@sri-kl.arpa

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