I have two files, which for a lack of better name, I have called test2.cgi and test3.cgi.
test2.cgi:
Quote:
#!/usr/bin/perl
print "Content-type: text/html\n\nHello, world\n";
|
test3.cgi:
Quote:
#!/usr/bin/perl
print "Content-type: text/html\n\nHello, world\n";
|
As you can see, they have the exact same content, but somehow,
./test2.cgi cannot be interpreted by the shell, while
./test3.cgi is correctly interpreted. They have the exact same chmod 755 permissions. I even copy and pasted the contents of the file just to make sure they were the same.
I also ran
diff test2.cgi test3.cgi
Quote:
1,3c1,3
< #!/usr/bin/perl
<
< print "Content-type: text/html\n\nHello, world\n";
---
> #!/usr/bin/perl
>
> print "Content-type: text/html\n\nHello, world\n";
|
What in ther world does this mean? This is really frustrating.