Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Stupid Question

Status
Not open for further replies.

chitownclone

Programmer
Mar 30, 2004
22
0
0
US
What do I have to do, to run a perl program from a folder inside the cgi-Bin. (cgi-bin/program_a_folder/program_a.pl)

Thanks



 
add a path to perl.exe within your script. You first line should be

#!\perl\bin\perl

Unless someone else has another suggestion.
 
On linux/unix

#!/path/to/perl
examples
#!/usr/bin/perl
#!/usr/sbin/perl
#!/bin/perl
#!/opt/bin/perl

You can find your path to perl by typing on the command line
Code:
which perl
in your html
Code:
<form method="post" action="/cgi-bin/program_a_folder/proga.pl" name="myform">
  <input type="text" name="fielda">
  <input type="submit" value="SubmitMe">
</form>

HTH
--Paul

cigless ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top