http://qs321.pair.com?node_id=177871


in reply to Re: I have a .cgi create a file, can I have it automatically FTPed to me or something?
in thread I have a .cgi create a file, can I have it automatically FTPed to me or something?

Sweet! What's the address of your server? I'd love to check out your /etc/passwd file...

Seriously, though, piping to sendmail is a big, *big* no-no, especially if it's being done through the web with user-entered data. Look at Mail::Send and a more secure way to do the same thing.

Other than that, I'd definitely suggest e-mailing the file as a great alternative to having to ftp in manually to retrieve the file.

scott.
  • Comment on Re: Re: I have a .cgi create a file, can I have it automatically FTPed to me or something?

Replies are listed 'Best First'.
Re: Re: Re: I have a .cgi create a file, can I have it automatically FTPed to me or something?
by cidaris (Friar) on Jun 28, 2002 at 14:51 UTC
    The message text that gets sent out gets run through several checkers first. In my case, if it's not plain old text, it doesn't get sent, just saved to a file, and I get e-mailed about the file's existence.

    However, I'd really like to hear about why it's a *big* big No-No.

    cidaris