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
Help with Linux Server
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
Ian
Re: Help with Linux Server
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.
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.
-
Andreas
Re: Help with Linux Server
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?
-
Andreas
Re: Help with Linux Server
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 /
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 /