Silk Servers and perl

Jim McGarry, Exam Proctoring center, sent me this question:

 This html has been working for years apparently up to the end of Fall 2012 semester; it calls a program to send email & to create a flat file in the directory it resides in that I download to create forms & update a database.

 

 

 

Now when I try to execute it I get

 

 

 

 

 

 

Scott Dellinger, Systems Architecture & Administration, Enterprise Technology Services, made note

The old server at cgi.uvm.edu was retired at the end of 2012.  This was announced in November and December to the it-announce and it-discuss mailing lists used to disseminate such information, though it does not appear you currently subscribe to either.  (You might wish to do so, in order to ensure you see IT service announcements.)  We also directly contacted script owners whose scripts we could determine were being actively used, though most of the remaining contents on this server were only being spammed anymore and so this was difficult to identify.  I’m sorry you were not aware of the change. It looks like your script is a derivative of FormMail.  We have a copy of FormMail running on a supported server, available on scripts.uvm.edu (see http://www.uvm.edu/it/utilities/formmail.html for details).  If this will work for you, then moving to use that would probably be your easiest option.  If not, then we have a new CGI hosting service that could be an option, though it works a little differently.  Just let us know and we’ll be glad to help.

Turns out ,Jim already has a “silk” server at

http://epc.w3.uvm.edu

created last October. See here and here.

the Bformmail2.pl script he was using had some additional features not found in formmail.pl He had a copy of this on backup drive, loaded it on his server. Nothing happened.

 

Apparently, form POST variables are not appearing in perl %ENV hash. I was able to prove this with this here link and this perl

#!/usr/bin/perl
use Data::Dumper;
use CGI;
print “Content-type: text/htmlnn”;
$query=CGI->new;
print “

";
print Dumper $query;

But no, say Ben:

Use $fcgi, as if it was an automagically created instance of CGI (because it is):

#!/usr/bin/perl
use Data::Dumper;
print "Content-type: text/htmlnn";
print "
";

The fcgi stuff on the server is setting up CGI, and is persistent across requests.  The requested perl script is executed per-request from a persistent fcgid handler

Oh, the fun we have.

 

About Wesley Wright

Born on a mountain top near New York City, Craziest state in the land of the pretty. Raised in the woods so's he knew every tree, Killed him a bear when he was only three.
This entry was posted in Wes and tagged . Bookmark the permalink.