in reply to Newbie cgi question
Name the file path.cgi or whatever... If your executable is not in your path.. viola` you have found why it doesn't work. Making the script run as a user who has that in his path, or physically moving the executable or a link to it in /perl/bin will also let you do it.... Hope this helps! :-) Revised: Added Win32 statement#!/perl/bin/perl use strict; #use CGI qw(:all); #Install this module! #print header; #Life will get much easier! print "Content-type: text/html\n\n"; # Or you can hand code like the above all you want my @output = `echo %path%`; # my @output = `set`; #see all the goodies print "<b>Your web browsers path:</b><br> @output";
|
|---|