Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simple CGI Question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2198

PostPosted: Mon Jan 31, 2005 2:34 pm    Post subject: Simple CGI Question Reply with quote

Is there already a CGI script that will submit a form's information to an e-mail address?
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
texas1emt
Guru
Guru


Joined: 27 Oct 2003
Posts: 352
Location: San Antonio, TX

PostPosted: Mon Jan 31, 2005 3:27 pm    Post subject: Reply with quote

Of course! A good place to look is Hotscripts.com. I've made a link for you to go straight to the "Form Processors" section of their CGI area right here.

They have a TON of scripts. They have a lot of PHP form processors, too, which you might find a little easier to set up and implement. I don't mean to rain on your parade by suggesting PHP instead, it's just my $0.02. :D
_________________
M. Hayden - San Antonio, TX
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2198

PostPosted: Mon Jan 31, 2005 4:04 pm    Post subject: Reply with quote

Crap... looking through this assignment, it looks like a pre-made CGI script isn't going to cut it. It looks like I'm going to have to create a bash CGI script. It's calling for certain length requirements for variables, a dictionary check for password, too much for a pre-made to handle. But:

How do I perform a dictionary password check through bash?

How do I send an e-mail through a command line?

I should be able to handle the rest.

Sorry, but this turned into a program question rather than a network question, move the thread if applicable.
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Mon Jan 31, 2005 6:11 pm    Post subject: Reply with quote

is this a homework question?
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2198

PostPosted: Tue Feb 01, 2005 12:49 am    Post subject: Reply with quote

thebigslide wrote:
is this a homework question?


Work, it's a new job and I think the guy is trying to put me through a ringer.
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
lookinin
Guru
Guru


Joined: 21 Jan 2005
Posts: 486

PostPosted: Tue Feb 01, 2005 1:16 am    Post subject: Reply with quote

I don't know if this is helpful or not, but if the package sys-apps/miscfiles is installed, you could use grep, if there's any output it's in the dictionary file:

Code:
grep whetstone /usr/share/dict/words


And as for mail, you could use sendmail - in it's simplest form - check "man sendmail" for more info (like if you want it to be from an address other than the logged in user):

Code:
echo "your text" | sendmail user@host
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum