I am assigned to write a Perl script to purge all text files older than X days from a Win2K server that's outside our firewall.  The only access I have to this server (call it 'Remote') is via a Perl script running on a different Win2K server (call it 'Local') inside our firewall.
 
Up until now, the only thing I've had to do with the Remote server is push data files out to it via a Perl script running on Local, via the FTP module.
 
My initial thought is that I'll have to glob the directory listings off the remote server; process thru those files on Local, building a list of what files should be deleted from Remote based on their dates; and then send FTP Delete commands for each file to be deleted, one at a time, to the Remote server. 
 
Am I making it too complicated?  Can anyone suggest a more elegant way to do it?
 
Thank you.
 
 
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to