Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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 ( [id://177871]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://177871]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-12-08 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (51 votes). Check out past polls.