Hi all,
I just installed linux the other day (i've never used it before) and I managed to get apache going alright, except when it comes to this one PERL script.
see, i have a dual boot system. from linux, i copied an old perl script from a folder from my windows partition to my cgi-bin. i set the chmod to 777, and tried running it from a separate box. It gave me the following error:
(2)No such file or directory: exec of /var/ failed
Premature end of script headers: /var/
It was a pretty simple script, but i used vi editor to cut all the text out and simply print "hello" to the browser. It still gives me the error. I then tried making an identical file from scratch in linux, and it works fine. I think it has to do with the actual file TYPE, as in a DOS file, perhaps (?) I noticed that when i edited the file in VI, it said [dos] at the bottom...
does anyone know how to remedy the problem?
any help would be appreciated.
-ryen
I just installed linux the other day (i've never used it before) and I managed to get apache going alright, except when it comes to this one PERL script.
see, i have a dual boot system. from linux, i copied an old perl script from a folder from my windows partition to my cgi-bin. i set the chmod to 777, and tried running it from a separate box. It gave me the following error:
(2)No such file or directory: exec of /var/ failed
Premature end of script headers: /var/
It was a pretty simple script, but i used vi editor to cut all the text out and simply print "hello" to the browser. It still gives me the error. I then tried making an identical file from scratch in linux, and it works fine. I think it has to do with the actual file TYPE, as in a DOS file, perhaps (?) I noticed that when i edited the file in VI, it said [dos] at the bottom...
does anyone know how to remedy the problem?
any help would be appreciated.
-ryen