home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.1 (User) / OpenStep 4.1 (User).iso / usr / template / client / etc / ppp / Examples / NXHosting_with_PPP < prev    next >
Encoding:
Internet Message Format  |  1995-07-11  |  1.0 KB

  1. From: gbrown@alumni.caltech.edu (Glenn Brown)
  2. Subject: Re: ppp and NXHost problems
  3. Date: 23 Nov 1994 07:37:57 GMT
  4. Organization: California Institute of Technology, Pasadena
  5.  
  6. If you want to NXHost over PPP, Simply execute the following 7 lines
  7. after the ppp connection has been brought up (these are simply the
  8. lines from the rc.net script that signal the nmserver that it should
  9. check for new interfaces.  Note that the kill command does not kill the
  10. nmserver.  Rather, it sends the "USR2" signal to the nmserver.)
  11.  
  12. #!/bin/sh
  13. #  Let the nmserver know the fruits of our network configuration endeavor.
  14. pid=`ps cax | egrep nmserver | awk '{print $1;}'`
  15. if [ -n "$pid" ]; then
  16.     echo "Reinitializing nmserver's network portion"
  17.     /bin/kill -USR2 $pid
  18. fi
  19.  
  20. Note 1: You have to executed the lines under "sh".  I suggest you
  21. save them in a file and type "/bin/sh file".
  22.  
  23. Note 2: I haven't actually tried this (I don't have another NeXT to
  24. test it on), but I figured out out reading the rc scripts.  Please let
  25. me know the result if you try it.
  26.  
  27. --Glenn
  28.  
  29.