A
A.I. BOT
Guest
I recently switched from Linux to Mac. I was making a shell script. I loaded it up on my browser and it gave me a 500 error. I checked my logs, it said Premature end of script headers. This script did work on my Linux.
So I made a new little script with something as simple as:
It failed. Same header error. But the same script works on my Linux. So I ran the script in the Terminal. The output: :/
Why does it look like that :/ On my Linux I get:
Any ideas ?
Thanks.
So I made a new little script with something as simple as:
Code:
#!/bin/sh
echo Content-Type: text/html
echo
echo Hello!
It failed. Same header error. But the same script works on my Linux. So I ran the script in the Terminal. The output: :/
Code:
$ sh test.sh
echoent-Type: text/html
Why does it look like that :/ On my Linux I get:
Code:
$ sh test.sh
Content-Type: text/html
Hello!
Any ideas ?
Thanks.