tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: david.rust () alcatel ! co ! uk
To: tru64-unix-managers
Subject: SUMMARY FTP Error Checking
Date: Fri, 14 Jul 2000 08:21:56 +0000	[thread overview]
Message-ID: <96356338614321.tru64-unix-managers.marc@archive.invalid> (raw)



Hi

Several differing responses to my question:

" I'm setting up a job to run regular unattended file transfers using ftp.
Setting up the job is not a problem and im sending the ftp output into a log
file but can't decide the best way to check whether the job has actually worked.
I am not looking to check whether ftp itself ran but want to guard against  a
failed login or failed put  of the files concerned."

The responses are summarised below

1. A few people pointed out tools available from the Web to provide enhanced ftp
like capabilities including the ability to check the status of a particular
operation within ftp:

nctfp                http://www.ncftp.com/ncftp/.

wget                ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/

mirror         http://sunsite.org.uk/packages/mirror/

2. Use Secure Shell (ssh) - Again better ftp status checking

3 Use PERL and the NET:Ftp module - As above

4. Check the log file and look for the success message
i.e
      grep -q "226 Transfer complete." ftplogfile
     sentok=$?
     if (( $sentok == 0 ))
     then
     echo "Successful xfer of $file"
      fi

I decided to go with option 4 because I was already thinking along these lines
and did not want to intoduce any new software to the platform. However I shall
make a note of the downloads mentioned  in option 1 because they may well come
in handy in the future.

Thanks to all who responed

Dave

                 reply	other threads:[~2000-07-14  8:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox