home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / programm / 5663 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  1.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!usenet.coe.montana.edu!news.u.washington.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!<UNAUTHENTICATED>+
  2. From: Sean.Levy@cs.cmu.edu
  3. Newsgroups: comp.unix.programmer
  4. Subject: Re: Determining the state of a process on another host
  5. Message-ID: <Uf_F7eO00hMg9m_mV7@cs.cmu.edu>
  6. Date: 11 Dec 92 12:10:50 GMT
  7. Article-I.D.: cs.Uf_F7eO00hMg9m_mV7
  8. References: <1992Dec10.154438.13881@dd.dk>
  9. Organization: Carnegie Mellon, Pittsburgh, PA
  10. Lines: 30
  11. In-Reply-To: <1992Dec10.154438.13881@dd.dk>
  12.  
  13. Excerpts from netnews.comp.unix.programmer: 10-Dec-92 Determining the
  14. state of a .. Mads Westermann@dd.dk (770)
  15.  
  16. >  Is 
  17. there any way of doing a remote kill(...,0) ??
  18.  
  19. In a word, no. Toolkits like ISIS and DPSK provide this functionality,
  20. plus a whole lot more, but you can't count on anything like this in a
  21. generic unix environment (actually, in just about any unix environment I
  22. know of. Maybe sprite has it, but I'm not sure, as I'm still
  23. reading/digesting the papers).
  24.  
  25. If you're running berkeley r* stuff, you could try something cheesy like
  26. rsh/rexec'ing to the remote host and ps'ing the pid. Gross, but could
  27. work. See rcmd(3).
  28.  
  29. Alternatively, and probably more sensibly, you could have an AYT (Are
  30. You There) message in your client/server protocol. This is the approach
  31. I've used, and it works well (and doesn't depend on anything else being
  32. in the environment).
  33.  
  34. Good luck,
  35.             -- Sean
  36. --
  37.                          Sean Levy, n-dim Group
  38.                  Engineering Design Research Center, CMU
  39.  
  40.     US Mail: 5000 Forbes Ave, Pittsburgh, PA 15213
  41.     Email: snl+@cmu.edu  (MIME and ATK accepted)
  42.     Phones: +1 412 268 {5217(lab),5221(ans.mach.),5229(fax)}
  43.