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_put
< prev
next >
Wrap
Text File
|
2010-11-10
|
254b
|
18 lines
#!/bin/sh
#
# Invoke tftp to write a file to a server non-interactively.
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
#
# Input parameter:
# $1 = the server IP address
# $2 = the file name
#
/usr/bin/tftp $1<<-DONE
put $2
if [ $? -eq 0 ]; then
exit 1
DONE