Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!cica!iuvax!rutgers!cbmvax!mks From: mks@cbmvax.commodore.com (Michael Sinz - CATS) Newsgroups: comp.lang.rexx Subject: Re: Something useful with AREXX Keywords: dme Message-ID: <9031@cbmvax.commodore.com> Date: 15 Dec 89 13:22:59 GMT References: <2897@pur-phy> Reply-To: mks@cbmvax.commodore.com (Michael Sinz - CATS) Organization: Commodore, West Chester, PA Lines: 36 In article <2897@pur-phy> murphy@newton.physics.purdue.edu.UUCP (William J. Murphy) writes: > >Yesterday, I had the misfortune of crashing in the middle of an editing >session in DME without having saved during the last hour. >-( Well, that >got me to thinking, "why couldn't AREXX fire up a program which starts >up every 5 minutes or so and tells DME to save whatever it is working on?" > >So my question is this, "What would be the best approach to getting AREXX >to put a program to sleep for 5 minutes and then sending DME a message to >save all files to a temporary space?" Would it be better if there were >two programs, one in C and the second in AREXX? The C program could be a >more general purpose chron program with an AREXX port which calls AREXX >to call DME. > >Has anyone done this sort of thing? Please share it if you can/will. That is easy of DME has an AREXX port. Just have a simple AREXX program that contains something like this: (This is not REAL code...) address command; "Wait 5 minutes" /* Use th CLI wait command */ check if DME is still around and exit if not... address DME; "do the save command" /* I don't have DME */ /* Now loop back and wait again... */ > >Thanks, >-- > Bill Murphy murphy@newton.physics.purdue.edu /----------------------------------------------------------------------\ | /// Michael Sinz -- CATS/Amiga Software Engineer | | /// PHONE 215-431-9422 UUCP ( uunet | rutgers ) !cbmvax!mks | | /// | |\\\/// When people are free to do as they please, | | \XX/ they usually imitate each other. | \----------------------------------------------------------------------/