Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!pollux.usc.edu!papa From: papa@pollux.usc.edu (Marco Papa) Newsgroups: comp.sys.amiga Subject: Re: REXX Message-ID: <27457@usc.edu> Date: 9 Oct 90 21:01:56 GMT References: <8933@helios.TAMU.EDU> Sender: news@usc.edu Organization: Felsina Software, Los Angeles, CA Lines: 36 Nntp-Posting-Host: pollux.usc.edu In article <8933@helios.TAMU.EDU> n350bq@tamuts.tamu.edu (Duane Fields) writes: >I have a few questions about rexx. I am wanting to write a script for Atalk or >VLT. I want the Rexx script to send commands to Atlk (or vlt) and then get >responses back. I can send commands to Atalk, and I think I know how to send >rex commands from Atalk, but here is the prob: How do I make Atalk send a mesg >to the rexx script in progress to do something? >Example, The script tells Atalk to "DIAL xxx-xxx" it then tells Atalk to >"WAIT for 'Conect'" or whatever and then log that it made a connection before >continuing. This way I could make it log on, check my mail, read news, or >whatever. And, NO I don't wont to just buffer the whole thing!!! I can only speak for A-Talk III scripts, but the script DIAL command will do the appropriate exchange, including gobbling the CONNECT string. It will also put the result of DIAL in the RC variable, so the Rexx script can check for success/failure of the dial. Of course you must have selected the appropriate modem for this to work. You could also do away with the DIAL command and implement it with: REPLY "ATDT666-888" ON "CONNECT" do this ON "BUSY" goto there etc... Note that the RC variable is set only in later versions of 1.2 and in all versions of A-Talk III 1.3x (x = a, b, c). A-Talk III has the STRING command to send input string from the host back to the Arexx script. Look at the examples in the manual, under the STRING script command. -- Marco -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "Xerox sues somebody for copying?" -- David Letterman -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=