Path: utzoo!attcan!uunet!husc6!mailrus!cornell!uw-beaver!ubc-cs!van-bc!lpami From: lphillips@lpami.van-bc.UUCP (Larry Phillips) Newsgroups: comp.sys.amiga.tech Subject: Re: ARexx questions Message-ID: <1973@van-bc.UUCP> Date: 25 Nov 88 14:34:53 GMT Sender: lpami@van-bc.UUCP Lines: 45 > The problem is, I can have the script telling Uedit to do all of these > things, and Uedit does them and sends a reply, but Uedit can't send a > message back to the script. I would like to be able to deal with the > error message from Uedit, but since it's waiting for a message and > can't send another one, I have to flip back to the TeX window and deal > with the error there. > I can do all of this if I would execute the script from the cli using > 'rx'. Uedit and the script can then have unchecked two-way > communication. But it won't work if Uedit calls the script. So, is > there a way to send a reply to the program that called the script, so > the two can have two-way communication? Well, I'm not sure I can visualize this problem poperly without actually using UEdit and TeX, but your last paragraph may hold the answer. You can effectively start a script from a CLI using 'rx' by calling a script from UEdit that in turn calls the 'texify' script. The script that kicks everything off can be quite short, returning immediately, giving 'control' back to UEdit. Remember that scripts can also communicate with each other, so if that is useful to you, you can do more than just start texify.rexx In addition to starting the whole process, you can also use other scripts at any point during the process to do various things for you. These can be started by texify.rexx, and (I presume) by UEdit and TeX. I ran into what may be a similar problem using TxEd and ARexx, where a script seemed to hang when it was put into a Wait, waiting for a message from TxEd, and I solved the problem by kicking off another script from TxEd to actually send the necessary message. Hope this leads to some success. -larry -- "Intelligent CPU? I thought you said Intel CPU!" -Anonymous IBM designer- +----------------------------------------------------------------+ | // Larry Phillips | | \X/ lpami.wimsey.bc.ca!lphillips or van-bc!lpami!lphillips | | COMPUSERVE: 76703,4322 | +----------------------------------------------------------------+