home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume23 / crack / part01 / Scripts / status < prev   
Encoding:
Text File  |  1991-09-22  |  363 b   |  25 lines

  1. #!/bin/sh
  2.  
  3. ###
  4. # This program written by ADE Muffett (aem@aber.ac.uk), August 1991,
  5. # as part of the 'Crack' password cracking package.
  6. ###
  7.  
  8. cat Scripts/network.conf | 
  9. awk -F: '
  10. /^[A-Za-z]/{
  11.     print "echo ::: Calling", $1, " :-";
  12.  
  13.     if ($4 == "")
  14.     {
  15.         rshf = "-n";
  16.     } else
  17.     {
  18.         rshf = "-n -l " $4;
  19.     }
  20.     print "rsh ", $1, rshf, "\"uptime ; ps x\"";
  21. } ' |
  22. sh
  23.  
  24. exit 0
  25.