Have a perl script I want to upload to my site (hosted elsewhere). But I'm a complete ignoramus. Never done this before.
Can someone with a golden heart out there guide this fruitcake? I've got a screen shot of the file structure, and I can mail the script, so I suppose that if you've done this a few times before, it'll take you 15 mnutes to tell how the various paths should be written.....
And what script wouold this be?
It's a password protetion gadget called CWD Site Access 1.0
m0ndo
08-23-2001, 02:01 PM
The first line in your perl script must be the path to your server's script compiler er, something like that
The default is usually #!/usr/bin/perl, check to make sure the first line of you script matches the path on the server you are hosted on.
If it does not match then it can be found by calling your system admin.
If #!/usr/bin/perl doesn't work try
#!/usr/local/bin/perl
otherwise call for the path, it's a pretty common question at the help desk
Matching that up is usually all it takes in making a script run, just make sure the links in your form match the path to where your script is saved.
.
The links to the perl is already there. It's the paths within the script (form) that I'm worrying about. It's 12-15, probably straight forward for someone who knows this.
I can mail the file structure and the script, etc for anyone who's got time to lend a helping hand. It's probably take 15 minutes.
D
Chicken
08-23-2001, 06:51 PM
You need to find out what the paths to perl (and sendmail if needed) are for the server you are on. You may have to change this in the first few lines of the script to match the exact configuration of the server. Even if someone else installs the script for you, they'll need this information.
The only other paths that seem to confuse people might be if it asks you for a path to the script/datafile/etc. as you'd see it in FTP:
/home/sites/public_html/cgi-bin/script.pl
or it wants you to list the path as you'd see it in the browser:
http://www.domain.com/cgi-bin/script.pl
-other than that, upload in ascii mode, set permissions properly (see script for details and instructions), and you should be good to go.
...but a guy with a heart of gold in Canada took care of it. The script os now successfully installed and working like charm, and I think I (maybe) can do it on my own next time....