FAQs for developing CGI web applications on the
Radio Gate web server

 

 

Where is PERL located?
/usr/bin/perl
Therefore, the VERY first line in your PERL scripts must be:
#!/usr/bin/perl

Why won't my PERL scripts run from the command prompt (i.e. from telnet)?

Most likely your cgi-bin is not in your BASH environment path. For immediate gratification you can run the PERL script by using DOT SLASH before your PERL script (./). This will explicitly indicate the path.

However, to fix this problem permanently you need to edit your .bash_profile and insert the following line:
PATH=$PATH:$HOME/cgi-bin

Where is SENDMAIL located?
/usr/sbin/sendmail

Please provide a SENDMAIL example in PERL?
$from_address = "Homer Simpson \<homer\@simpsons.com\>";
$to_address = "Bart Simpson \<bart\@simpsons.com\>";
$mailprog = '/usr/sbin/sendmail';
open(SENDMAIL,"|$mailprog -t");
print SENDMAIL "To: $to_address\n";
print SENDMAIL "From: $from_address\n";
print SENDMAIL "Cc: $from_address\n";
print SENDMAIL "Subject: $subject\n\n";
print SENDMAIL <<"EOF";
Mmmm Donuts!
More text here ......
EOF
close(SENDMAIL);

 

Home | Expertise | ethusiasm Online Store | Internet Consulting | Web Hosting | Multimedia Production
Photographic Production | Network Installations | Radio Signal Surveying | Radio Gate Customers | Employment
* Contact Us *
Copyright © 2001 Radio Gate International, Inc.