Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Perl Question., Need hELp PLZ
abu7mad
post Oct 31 2005, 04:27 AM
Post #1


Newbie
*

Group: Members
Posts: 1
Joined: 31-October 05
Member No.: 13,600



First of all, thank you for the free web hosting @ Trap17.net.

I am new to cgi scripting and lucky 2 find ur site for practicing and developing some new script also intend to have my first personal cgi website, when I wanted to install a cgi script I was requested the following information:

Ask your provider for the path to perl, is it:

#!/usr/bin/perl
#!/usr/local/bin/perl
#!/bin/perl

Please help.
Thanx.
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Oct 31 2005, 05:08 AM
Post #2


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,489
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



Hi there,

In my signature there are links which most of your questions might be answered. Check out cPanel Demo page link. This will tell you the exact path to CGI.

Please make sure that you are using QUOTE tags when using someone else's words. To use QUOTE tags
CODE
[QUOTE] << insert exactly >> [/QUOTE]
Observe other forum rules and BB codes. And before making a new topic search the forum. It's a must!

I hope this answers your question.
Go to the top of the page
 
+Quote Post
mama_soap
post Oct 31 2005, 11:45 PM
Post #3


Super Member
*********

Group: Members
Posts: 282
Joined: 30-May 05
From: Bangalore
Member No.: 7,686



abu7mad:

When you login to your cpanel, you can try looking at the leftmost column, the second block that is titled "General Server Information". There, you will find that the path to perl is #!/usr/bin/perl, i.e., the first choice smile.gif As a matter of general principle, when you want to test a perl installation on any server, you could copy the following:

CODE
#!/usr/bin/perl
##
##  printenv -- demo CGI program which just prints its environment
##

print "Content-type: text/plain\n\n";
foreach $var (sort(keys(%ENV))) {
   $val = $ENV{$var};
   $val =~ s|\n|\\n|g;
   $val =~ s|"|\\"|g;
   print "${var}=\"${val}\"\n";
}


into a plaintext editor, save it as printenv.pl, upload it to your public_html directory, and run it from there to look up information on the perl installation. I am not sure if you could/should do this on Trap17, though, and since you only need the path, that's almost certainly #!/usr/bin/perl.

Hope this helps smile.gif

Cheers and good luck with the CGI stuff.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Perl For Automated Web Form Search(1)
  2. Perl Regular Expresions Regex(2)
  3. Perl Interactive Mode(2)
  4. Where Do I Install Perl Scripts?(6)
  5. Compiling Perl / Python?(3)
  6. Perl As A Way To Program Desktop Applications(8)
  7. What Is Perl ? For A Layman Like Me !(7)
  8. Perl Help(1)
  9. Matching Accents In Perl Regular Expresions(1)
  10. Perl V.s. Php(5)
  11. Few Perl Snippets For Misc Things(2)
  12. So...what's The Perl Deal?(0)
  13. Good Php, Mysql, Perl, Postgresql, Html, Css Etc For Linux?(2)
  14. Is Perl Better Than Php ?(9)
  15. Problem Running Perl Scripts(8)
  1. Xampp(1)
  2. Xmlhttprequest And Perl(2)
  3. Call C Code From Perl(1)
  4. The Uniform Server(5)
  5. Perl Interview Questions(1)
  6. Perl Code Obfuscator V1.0(0)
  7. Perl/cgi Help!(3)
  8. First Perl Programm(5)
  9. Perl 5.8.6(1)
  10. Hotscripts(4)
  11. Auto choosing primary or secondary server (Perl)(0)
  12. Perl Progamming/scripting(3)
  13. Perl Cd Bookshelf Ver 4 - O'reilly(1)
  14. Easy Authenication With Cgi/perl(0)
  15. Using Mysql With Perl(1)


 



- Lo-Fi Version Time is now: 11th October 2008 - 08:44 PM