Page 1 of 1
Help with Linux Server
Posted: Sat Nov 17, 2001 8:06 pm
by Arames
I am trying to install a banner exchange script on my server.
The problem is my server runs under LINUX, and when I change the setting in banner.pl with the Textpad and after Uploading it to my server. IT DOESN'T SEEM TO WORK.
I am 100 % sure of the script and the setting, but is there any thing i should do to make the script work under my Linux Server ( p.s: I am using Windows 98 SE).
Thank you in advance
Re: Help with Linux Server
Posted: Sun Nov 18, 2001 11:39 am
by Ian
Are you saving the Perl script as a Unix file, or as a "PC" file?
You should be saving it as a Unix file.
Go to File, Save As..., and look for a drop-down box with options like PC, Unix, Mac. Select the "Unix" option, and save the banner.pl as that format.
Of course - it could be something else - like a missing semi-colon in the Perl script. Hard to say.
Re: Help with Linux Server
Posted: Sun Nov 18, 2001 1:05 pm
by Andreas
Another hint: Windows does not discern (is that the correct word?) between normal and capital letters in filenames, Unix does. Do you have any misspelled filenames in your script?
Re: Help with Linux Server
Posted: Sun Nov 18, 2001 1:09 pm
by Andreas
One more thing (it just came to my mind after I clicked on the "Post" button).
On Unix systems, scripts need to have the shebang-line, i.e. the first line should look like
#!/usr/bin/perl
(this assumes that the perl interpreter is called perl and resides in the directory /usr/bin)
Windows usually does not need the shebang line, so a script working under windows will not necessarily work under Linux (or other Unix derivates).
And one more: Windows uses \ to separate directories in a path while Unix uses /