in reply to I have a .cgi create a file, can I have it automatically FTPed to me or something?
I've always found the easiest way to do this is to e-mail.
Open sendmail as a file and put all the info you need into it. Once you close the e-mail "file" sendmail will ship it off. Depending on your server and volume of e-mail, you should get it nearly instantly.
I have a perl script which does exactly this any time anyone views a home listing on my realty site. It e-mails me the page they looked at, their e-mail address, etc. and I never even have to connect to my server.
Very handy.
Open sendmail as a file and put all the info you need into it. Once you close the e-mail "file" sendmail will ship it off. Depending on your server and volume of e-mail, you should get it nearly instantly.
I have a perl script which does exactly this any time anyone views a home listing on my realty site. It e-mails me the page they looked at, their e-mail address, etc. and I never even have to connect to my server.
Very handy.
cidarisopen(SM,"|/usr/sbin/sendmail -t"); print SM <<OUT; To: me\@me.net From: server\@yourserver.com Subject: results $msg_text OUT close(SM);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: I have a .cgi create a file, can I have it automatically FTPed to me or something?
by sschneid (Deacon) on Jun 27, 2002 at 22:19 UTC | |
by cidaris (Friar) on Jun 28, 2002 at 14:51 UTC |
In Section
Seekers of Perl Wisdom