home *** CD-ROM | disk | FTP | other *** search
/ ftp.jcu.edu.au / 2014.06.ftp.jcu.edu.au.tar / ftp.jcu.edu.au / v6.3.2b / SWBD63 / fabos-6.3.2b-10.ppc.rpm / fabos-6.3.2b.10.cpio.gz / fabos-6.3.2b.10.cpio / sbin / tftp_get < prev    next >
Text File  |  2010-11-10  |  259b  |  18 lines

  1. #!/bin/sh
  2. #
  3. # Invoke tftp to retrieve a file from a server non-interactively.
  4. #
  5.  
  6. PATH=/bin:/usr/bin:/sbin:/usr/sbin
  7.  
  8. #
  9. # Input parameter:
  10. # $1 = the server IP address
  11. # $2 = the file name
  12. #
  13. /usr/bin/tftp $1<<-DONE
  14.     get $2
  15.     if [ $? -eq 0 ]; then
  16.         exit 1
  17. DONE
  18.