in reply to I need a critic (well actually just someone to give some constructive advice)

Advice.

Rather than assuming that 3 minutes is enough, make it the responsibility of the transfer script to take the name with an ending indicating it is ready to go, transfer it, and then rename it to the final name. That will be both faster and safer than waiting 3 minutes. Otherwise I can practically guarantee you that in a few years someone will ftp a large file across the country and your script will break.

  • Comment on Re (tilly) 1: I need a critic (well actually just someone to give some constructive advice)

Replies are listed 'Best First'.
Re: Re (tilly) 1: I need a critic (well actually just someone to give some constructive advice)
by kevin_i_orourke (Friar) on Jun 18, 2001 at 15:02 UTC

    It might also be a good idea to calculate checksums for the file at each end (using Digest::MD5 for example). This is a good (if paranoid) way of making sure that the file made it through FTPing.

    Of course, if you're really paranoid you would do a character-by-character comparison, can't go trusting checksums... ;-)

    --
    Kevin O'Rourke