Jimmy, The script works perfectly. I am not concerned with the ftp as the server is protected in a DMZ and address locked down to our customer. I modifed the script for my needs. I appreciate your help. I was in brain lock on how to do this.
Thanks, Craig >>> "James Schappet" <[EMAIL PROTECTED]> 06/09/03 10:59AM >>> Now with sample code in-hand. Don't use FTP. FTP is insecure and should not be used. Take a look at using SSH/SCP. There are perl modules for SCP, but I think that would be over kill a simple shell or perl script would do. Jimmy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig Sharp Sent: Monday, June 09, 2003 10:34 AM To: [EMAIL PROTECTED] Subject: [Perl-unix-users] URGENT: Scan a directory and ftp if there are files Hi all, I need a example of scanning a directory on a scheduled basis (crontab) for files. If there are files in the directory, those files need to be ftp'ed to a server and then deleted from the sending server. This is an automated incoming mailbox for EDI and the data needs to be transfered when it arrives. This is a hot task so any help would be appreciated. Thanks! Craig A. Sharp Unix Systems Administrator DNS Administrator Security Administrator Roush Industries Office: 734-466-6286 Cell: 734-231-6769 Fax: 734-466-6939 [EMAIL PROTECTED] ==================================================== I have not lost my mind, it's backed up on tape somewhere! ==================================================== _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs