Perl-Sensitive Sunglasses | |
PerlMonks |
Seeking tutelageby Gnuser (Novice) |
on Mar 08, 2002 at 16:27 UTC ( [id://150356]=perlquestion: print w/replies, xml ) | Need Help?? |
Gnuser has asked for the wisdom of the Perl Monks concerning the following question: I'm not very bright. I'm not even a programmer. But I met Perl and the world changed. I want to be a code junkie. And I think I'm eccentric enough to be a Perl monger some day. If the monks knew that I've tried to do my homework, for weeks, and I'm going through every O'Reilly book I can afford, would they please shed light on these tasks I've set for myself. Problem1: An NT Server on the LAN finishes batch and stores a text log file locally every Saturday. I come to work to retrieve the file and forward it as an attachment to my clients. (Don't get me wrong, I'm glad to have work!) Using a win32 interface, I was able to send email using mail::sendmail, which displays the date and time in the message, but I don't know how attachments works. (Base, I'm sure, but it took me about three days.) I was able to use net::ftp to log on and put files to an NT server, but I have no idea how to code for the directory location. And I have no idea how to get (though I imagine it's just the opposite of put). I'm wondering if it's possible to subroutine some ftp code in the same mail Perl script to get the LAN server's log text file. Once done, how do I get the mail subroutine to identify and attach it. Ideally, I'd like to splash the contents of the file into the mail message (text file is very small, and can be parsed if needed). Over the top: Be able to send this message automatically to all my clients (another file?), with a subject line that changes with each client. The showstopper is how to schedule this to kick off every Saturday. I'm finding some utils for NT scheduler on a client, but will have to learn them first. Problem2: My clients send updates for their servers and often in the form of .zip. Is it possible to push this file (HUGE!) to multiple servers and unzip it? I am learning how to use Net::Gnutella. I realize that a different compression might be needed, so I could use the pack and unpack commands. Over the top: Be able to have the script query me for either the server DNS names or the ip address, then it would go push and complete and tell me things are copacetic. I apologize initially for my lack of knowledge. I've scoured the many forums and apologize if I missed something in this endless resource that could help. I would appreciate any insight and will gladly research more, learn further, humble monks and even trek to the Gorge of Eternal Peril (any idea what questions three?).
Back to
Seekers of Perl Wisdom
|
|