These posts have been very helpful for some scripts I'm trying to write myself -- thank you to everyone who's posted so far.
I've got a trickier question, though. In my script, I need to do an FTP push (as outlined above), but then invoke another script afterwards that is dependent on the FTP transmission having been successful. Does anyone know of a good way of verifying that the FTP transmission was successful within the script itself? For example, if my FTP account is locked out, I'd like to be able to trap the error there before continuing on in my script. I've considered redirecting the output of the FTP session to a file and then grepping for various keywords that would indicate FTP problems, but I was wondering if anyone new of any nicer/cleaner ways to do this kind of error checking.
Any thoughts would be appreciated!!
-- Daryl