Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!brutus.cs.uiuc.edu!apple!amdahl!kim From: kim@uts.amdahl.com (Kim DeVaughn) Newsgroups: comp.lang.rexx Subject: Re: Something useful with AREXX Keywords: dme Message-ID: Date: 16 Dec 89 12:15:30 GMT References: <2897@pur-phy> <19326@watdragon.waterloo.edu> Organization: Amdahl Corporation, Sunnyvale, CA 94086 Lines: 45 In article <19326@watdragon.waterloo.edu>, rsingh1@dahlia.waterloo.edu writes: > > I'm not familiar with how DME interfaces arexx, but the simplest > solution, although not the most elegent is to do something simple like: > > /* MEGAdealy MegaDME MegaMegaSave Mega Program V0.0 */ > arg fred > Do Forever > Call Delay 50*fred /* the argument fred is the # of seconds to wait */ > If Find(Show('P'),"DME") >1 Then Address DME 'whatever commands you want > dme to do' > End Won't work in the current implementation. DME is not setup to receive arbitrary unsolicited messages; only to invoke a REXX macro on it's own behalf. One other little "gotcha" ... a port that is setup to do what you want would likely not have quite such a simple name. You might easily have several copies of DME running, and they each would need their own unique port (and port name), so you'd have to do some searching. And then how do you tell when you've found the correct DME's port ...? > That little blurb of junk will wait 'fred' seconds (you supply that when > you invoke it (cli argument). Then it will look for the port name > DME (if it's not called DME, change it). If it is somewhere in the > ports list, it will address dme, and send it whatever commands you like. The DME port used for the REXX macro to issue commands back to the editor only exists while that macro invocation is in progress. There isn't one just "hanging around". Hopefull, I can get back to this project one of these days, and do the full implementation ... /kim -- UUCP: kim@amdahl.amdahl.com or: {sun,decwrl,hplabs,pyramid,uunet,oliveb,ames}!amdahl!kim DDD: 408-746-8462 USPS: Amdahl Corp. M/S 249, 1250 E. Arques Av, Sunnyvale, CA 94086 BIX: kdevaughn GEnie: K.DEVAUGHN CIS: 76535,25