You can type here any text you want

Perl scripting on a Windows Server

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

turbojimmy

Supporting Member
Joined
May 26, 2001
Messages
5,560
This is a long shot but I don't know who to ask this. I figure there have to be some Perl-types among us.

I'm running a canned software package on a Windows server that allows me to create classified ads on a web site I built for my uncle. He wants to list his rebuildable wrecks on his site. It's really a collection of Perl scripts that provide a GUI-based add/delete functionality. The software works fine on my "test" environment, which a Windows server at home. Scripts execute fine and have write permission to modify the ad templates.

Now I need to move the application to the production environment which is Earthlink-hosted Windows-based space. They only allow the execution of scripts in the /cgi-bin directory and you can only write to the /data directory. This is going to require quite a bit of tweaking of the scripts, but that's okay. My problem is that no matter what I tell the scripts, it treats the /cgi-bin directory as the root. So when I tell it to modify /data/thisfile.txt it tries to modify /cgi-bin/data/thisfile.txt (which it can't do because the cgi-bin directory does not have write permission). I tried telling it to modify '../data/thisfile.txt' (hoping the '../" would bump it up to the root), but it still appends the '../data/thisfile.txt' to the /cgi-bin so it winds up trying to modify '/cgi-bin/..data/thisfile.txt' and I get a bad argument error.

So, how do you get a script that's executed in the webroot/cgi-bin directory to go "up and out" to write to a webroot/data directory. I hope this makes sense....I know what I need it to do but I'm not familiar enough with Perl to make it happen.

A second alternative is to ditch the Windows environment and host it in a Unix environment where I can set my own permissons.

TIA,
Jim
 
Back
Top