LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-14-2004, 10:40 AM   #1
Michele
Member
 
Registered: Feb 2001
Location: Detroit
Posts: 31

Rep: Reputation: 15
Question cgi script trouble


Will my cgi script run on my web server if my mailserver is a different machine? I'm running Mandrake 9.2 and Apache 2.0

Thanks
 
Old 05-14-2004, 12:53 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I can't see why not bit then it depends on what your script does.
 
Old 05-14-2004, 02:54 PM   #3
Michele
Member
 
Registered: Feb 2001
Location: Detroit
Posts: 31

Original Poster
Rep: Reputation: 15
Question cgi script trouble

The form just take some info from a web page, name address etc. and mails it to an email address, but when I test it I keep getting a 500 error.

Michele
 
Old 05-14-2004, 03:08 PM   #4
Michele
Member
 
Registered: Feb 2001
Location: Detroit
Posts: 31

Original Poster
Rep: Reputation: 15
Question new info cgi script trouble

Ok, I put a -w after the /usr/bin/perl and the form came back with this error

CGI script error cannot start /usr/lib/sendmail

How do I tell it to go to the other server and use that sendmail which is really postfix?????

Michele
 
Old 05-14-2004, 03:14 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Rather than writing directly to a sendmail program try changing it to use the MIME::Lite module and comminicate directly with your SMTP server.
 
Old 05-14-2004, 03:23 PM   #6
Michele
Member
 
Registered: Feb 2001
Location: Detroit
Posts: 31

Original Poster
Rep: Reputation: 15
Question ??

Sorry, but how do I do that?

I'm assuming I substitute something in place of /usr/lib/sendmail but what does it look like? I'm a newbie.

Thanks,

Michele
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory listing - Calling shell script from a CGI script seran Programming 6 08-11-2005 11:08 PM
python cgi script and premature end of script headers Neruocomp Programming 1 07-28-2005 11:43 AM
Trouble installing CGI scripts shaggystyle Linux - Networking 7 01-13-2004 02:38 PM
REMOTE_HOST in a CGI-bin script trouble gary knott Linux - Networking 4 11-12-2003 05:33 PM
Protect a CGI Script? LiveMatter Programming 13 09-24-2002 08:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration