[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Aug 3 08:57:24 1993 
Subject:Re: Prodding Ved from the Outside 
From:rogere (Roger Evans) 
Volume-ID:930803.03 

> I'd like to be able to provoke XVed into editing a file ``from the
> outside'', ie, by running a script or program. [Note that I have
> an XVed already running, and that's the one I'd like to open up
> the new window.]
>
> How might I go about this?

> (Aarons reply etc)

> The only problem with this is that N would have to be at most 1 sec. 
> I'd rather have a technique that could prod Ved on demand. Is there a
> spare signal I could use?

Signals USR1 and USR2 are intended for user use and pop doesn't actually
use them itself I don't think. So you could use them to read a file
created in the manner Aaron suggested.

A nicer solution would be to use rpc - set up your ved process to
respond to rpc requests, and then write a little C program which takes a
PID and a string as arguments and does an rpc call to the pid which
causes the string (some pop code) to be evaluated within pid. Then you
could do

    % popcallrpc <XVED PID> "editor('<FILE>');"

(and in addition many other weird and wonderful things....).

NB: we haver rpc code here (as descirbed by Rob Gaizauskas at PLUG92)
but not QUITE what would be needed to support the above.....

Roger