home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / help-lucid-emacs / text0213.txt < prev    next >
Encoding:
Text File  |  1993-07-14  |  1.3 KB  |  39 lines

  1. In article <1993Apr29.020655.7430@cas.org> zfs60@cas.org () writes:
  2. >sometimes i want to ask a lemacs to run a function from say a shell script.
  3. >i can use the -batch, which starts and kills a new lemacs, quite expensive
  4. >and slow.  i am wondering if there is a way to send a request to a running
  5. >lemacs.  this would be similar to emacsclient, but instead of editing,
  6. >it executes the function(s) and/or scripts as well, if i say
  7. >emacsrequest -l foo.el
  8. >the running lemacs will then execute foo.el
  9. >
  10. >thanks for any ideas,
  11. >
  12. >--john
  13.  
  14. The gnuserv package includes a client called 'gnudoit', that does exactly
  15. that.
  16.  
  17. gnuserv is available by anon ftp from archive.ohio-state.edu
  18.  
  19. an enhanced version of gnuserv.el for lemacs is availble from the 
  20. help-lucid-emacs or bug-lucid-emacs archives on labrea.
  21.  
  22. gnuserv works over internet or unix domain sockets, so your client 
  23. can be on a different machine than your server.
  24.  
  25. I posted a patch to gnuserv awhile ago that fixes the security 
  26. hole introduced by using internet domain sockets, but as far as I know, 
  27. I'm the only one that uses it :-)
  28.  
  29. I must say its pretty cool to have an edit command one machine bring up
  30. a screen on a lemacs running on a different, incompatible machine.  
  31. Unix on a good day :-)
  32.  
  33. Cheers,
  34.  
  35. David
  36. -- 
  37. David Bremner / bremner@cs.sfu.ca / ubc-cs!fornax!bremner / (604)291-5938(days)
  38.  
  39.