home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / question / 14981 < prev    next >
Encoding:
Internet Message Format  |  1992-12-27  |  1.0 KB

  1. Path: sparky!uunet!munnari.oz.au!jabaru.cec.edu.au!csource!gateway
  2. From: Russell.Coker@f362.n633.z3.fidonet.org (Russell Coker)
  3. Newsgroups: comp.unix.questions
  4. Subject: Determining the state of a process on another host
  5. Message-ID: <725483430.AA06113@csource.oz.au>
  6. Date: Tue, 22 Dec 1992 15:08:06
  7. Sender: gateway@csource.oz.au
  8. Lines: 14
  9.  
  10.  we> I'm currently writing a client-server application that uses BSD
  11.  we> sockets to communicate. At certain stages in the processing I
  12.  we> want to be able to determine whether the client process is
  13.  we> running/alive. If the client is running on the same machine I
  14.  we> can just do a kill(..,0), but if the client is running on another
  15.  we> machine - what do I do then ?? I have the hostname, the remote pid,
  16.  we> the username and the remote tty-name available on the server. Is
  17.  we> there any way of doing a remote kill(...,0) ??
  18.  
  19.    Couldn't you do an "RSH remote-host -l login-name 'kill(...,0)'"?
  20.  
  21.    cya
  22.  
  23.  * Origin: MBUG BBS - Melbourne 'Bee Users Group. 7395238 (Quick 3:633/362)
  24.