Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think!huxley!glenn From: glenn@huxley.huxley.bitstream.com (Glenn P. Parker) Newsgroups: comp.sys.apollo Subject: Re: invoking the dm editor from inside a Bourne shell Message-ID: Date: 21 Aug 90 22:45:06 GMT References: <1990Aug16.231437.28459@Neon.Stanford.EDU> <4c41b6e2.20b6d@apollo.HP.COM> Sender: glenn@huxley.UUCP Reply-To: (Glenn Parker) Distribution: comp Organization: Bitstream, Inc. Lines: 26 In-reply-to: valante_g@apollo.HP.COM's message of 17 Aug 90 17:16:00 GMT In article <4c41b6e2.20b6d@apollo.HP.COM>, valante_g@apollo.HP.COM (Glen E Valante) writes: > In article <1990Aug16.231437.28459@Neon.Stanford.EDU>, > ammon@Neon.Stanford.EDU (Daniel Ammon) writes: >> >> Is there anyway to get a (Bourne) shell script to bring up a file >> in the dm editor? Right now I am calling vi, but I would also like >> to be able to bring up the editor you get when pressing the EDIT key. > > from the shell, you can execute: > > /com/xdmc ce Unfortunately, /com/xdmc only works if it is executed from an Apollo pad, i.e. _not_ inside an xterm. So, your script won't be as portable if you use this technique. You _can_ do the following: /usr/bin/X11/dmwin /usr/apollo/bin/xdmc ce But this leaves a "scrap" DM window lying around. Ah well, if you like the DM editor, you probably don't care about xterms anyway... :-/ -- -------------------------------------------------------------------------- Glenn P. Parker Bitstream, Inc. uunet!huxley!glenn 215 First Street glenn@bitstream.com Cambridge, MA 02142-1270