[comp.sys.sun] Help with 4.3 BSD Ftp command

perrone@gatech.edu (Perrone Ford) (04/22/89)

Help me please!....

I am in need of a bit of information regarding the FTP program on a SUN
3/60....  what i need to do is to FTP a file to a remote host once an hour
on the hour...using the "at" command most likely...  now i need to pass
the name of the file to send to FTP and I need to put FTP in verbose mode
and dump what it says to a file....like FTP -Va_Args >> data.file...
anyone ever do this kind of stuff?

Perrone T. Ford                   | Bitnet : PFord@FSU.Bitnet  
arpa: Perrone@loligo.com.fsu.edu  |       ford@systems.fsu.edu 

gretzky@unison.larc.nasa.gov (Mr. Stanley Cup) (05/08/89)

Here is a small example to handle the collecting of verbose mode's chatter.

#!/bin/sh
#
HOST=name.of.host.edu
FILE=/mypath/me/file
#
/usr/ucb/ftp -n -v $HOST << EOFTP > output 2> errors
user the_name the_password
type binary
put $FILE
bye
EOFTP

====================================================

A better suggestion is to use BFTP [Background FTP] instead of FTP.  It
can be retrieved via anonymous ftp from venera.isi.edu.  The latest
version is BFTP.12.

Questions regarding BFTP should be directed to Annette DeSchon
(deschon@venera.isi.edu).  If you use ftp at all, then this is excellent
software to use.  Yes, it is compatible with FTP.  With the distribution,
there *is* a BFTPtool.  Pretty neat I might add.

			-=>gretzky<=-
.mitch