hi! i'm not that well-versed in unix, and here's the scenario:
1) i got some .cgi and .pl scripts
2) modified the necessary paths inside the scripts (i used a text
editor - notepad since i'm using win95)
3) uploaded them in a cgi-bin directory of a virtual server (the
server is of course a unix server with all the paths and perl
interpreters set, i think)
4) tried to run the scripts by adding the proper tags in a HTML
document.. and loading the HTML document in a browser.
... as expected it won't work readily and the error logs say:
"illegal char (##) at line ##". i know there should be a command in
the unix shell that i could use to validate or compile (? - not sure
about the terms here) the script by stripping the illegal characters
like carriage returns <-- and this is the problem. what command is
it?
i can manually edit the scripts with a text editor, remove all the
carriage returns and upload the file as an ASCII.. but that would take
forever.. and yet, there will be no guarantees.
so, can you guys help me? i need the necessary step between 3 and 4.
thanks.