LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 1996, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 2 Oct 1996 19:48:00 GMT
Reply-To:     Rdsdnen <rasanen@SPRYNET.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Rdsdnen <rasanen@SPRYNET.COM>
Organization: Sprynet News Service
Subject:      Re: SAS/IIS/Win NT 2.0/Perl CGI Script

Faith,

Thanks for the reply.

Here's what's happening.. now let me see.

I downloaded from hip the latest and greatest Perl5 (110-i86.zip) and ran the Install.BAT which automatically associated .pl with c:\perl5\bin\perlIIS.DLL in the WIn NT 4 Registry.

I run in houses.html with the line <FORM ACTION="http://old_one/scripts/sas_process.pl" METHOD=POST>

In my sas_process.pl, I now have specified # This is the directory SAS will write its temporary files to; must # be writable by the web server's userid. $HOME = "c:/temp";

# This is the directory that contains the .SAS files to run. $PROGROOT="c:/httpd/htdocs/SAS-process";

# This is the full path name of the SAS System. # $SAS611="c:/sas"; # I used the above line, but this Web server point to another server where sas runs # so lets see if the next line does the trick? # Drive P is simply the drive on the OTHER server that this NT server points to run SAS $SAS611="p:/CASES/SAS611/SAS";

And then I uncomment these lines at end of sas_process.pl # ok commenting these out #unlink("$HOME/$pname.sas"); #unlink("$HOME/$pname.log"); #unlink("$HOME/$pname.lst");

I fire up Netscape 3.0, navigate to my server houses.html page, and click on Submit, and get a reply with a Navigator messagebox "You have starter to download a file of type application/x-perl Click More Info to learn how to extend Navigator's capabilities" If I click on ok, it wants me to save sas_process.pl

Duh?

Why does Navigator want me to download the file? I want to execute it, not download it. --

rasanen@sprynet.com http://home.sprynet.com/sprynet/rasanen/

FRS--LiteWate <faith@FRSA.COM> wrote in article <2.2.32.19961002093246.006f5bb8@holonet.net>... > This darn post came back to me undeliverable so here goes again: > ====== > At 12:46 PM 10/1/96 GMT, Rdsdnen wrote: > >Status report on Tue Oct 01, 1996 > > > >I am still trying to run the sample at > >http://www2.sas.com/SAS-process/houses.html > >Some very kind folks have sent email, and I will try the suggestions they > >offered. > >In case anyone/someone/somewhere is running NT 4 Server with IIS 2.0 Web > >Server, here are my steps: > > > >http://www.sas.com/rnd/web/sascgi.html was my "starting point". > >I then clicked on the "simple CGI example". > >>From there I copied the HTML page at > >http://www2.sas.com/SAS-process/houses.html > >I looked at the "five steps" > >Clicked on the "CGI Script" and copied the > >http://www2.sas.com/SAS-process/sas_process.pl script to my > >\inetsrv\scripts directory and I also tried my \inetsrv\wwwroot\cgi-bin > >directory. I did modify the "make changes from here" section -- but am not > >sure if I should have compiled the thing? Should I install "perl support" > >or something like that for NT 4 Server? > <STUFF DELETED> > > I have the same set up on one of my computers at home with one exception. I > set up my iis server on my 2nd drive. > > on the 5 steps to creating a SAS CGI application, web page, there is a > paragraph at the very very top which contains the following: > "...With some modifications it should be possible to make it run on other > platforms with any version of the SAS System and a different type of Web > server as long as the machine has Perl installed and the Web server supports > the Common Gateway Interface. " > > the authors of the web site ASSUMED that you already have perl installed on > your system. seems to me that you are lacking nothing but the PERL for Win32 > product. Download it for free from the web. check out www.hip.com. > > btw, perl programs do NOT need to be compiled like C++ programs. Just > execute the PERL scripts and the code will be 'interpreted'. But you MUST > PROPERLY install perl. one final note: put your html docs in a htdocs > directory and NOT in your perl directory or your perl scripts directory. do > NOT put your perl scripts in the same directory as the perl product because > of security concerns. > > best to you... > > -- > Faith Renee Sloan (FRS ASSOCIATES) - A SAS Institute Quality Partner > faith@frsa.com (WEB Site Design and Interactive Programming/SAS and Internet > educator) > http://www.frsa.com (world-wide-web home base) > http://www.frsa.com/bbpage.shtml BodyBuilding Page > a Pointgrrl for San Francisco Webgrrls > sanfran@webgrrls.com -- http://www.webgrrls.com/sf >


Back to: Top of message | Previous page | Main SAS-L page