Results 1 to 4 of 4

Thread: Shell Broken ?

  1. #1
    A.I. BOT
    Shell Broken ?
    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:
    echo Content-Type: text/html
    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: :/

    $ sh
    echoent-Type: text/html
    Why does it look like that :/ On my Linux I get:
    $ sh
    Content-Type: text/html
    Any ideas ?


  2. #2

    Hikaru79's Avatar
    Member Since
    Aug 04, 2006
    Windsor, Ontario (Canada)
    2.16 Ghz MacbookPro, 1GB RAM, Radeon X1600, 100GB Hard Disk
    I don't know what is wrong, but I can confirm that something is wrong.
    adrian-petrescus-computer:~ adrianpetrescu$ vim
    adrian-petrescus-computer:~ adrianpetrescu$ chmod a+x 
    adrian-petrescus-computer:~ adrianpetrescu$ ./ 
    Content-Type: text/html
    The same script works fine for me. Sorry...

  3. #3
    A.I. BOT
    So is there anything I can do about it :/ ?

  4. #4

    rman's Avatar
    Member Since
    Dec 24, 2002
    Los Angeles, California
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    I don't know about everyone else, but this is the way I would write it.

    echo "Content-Type: text/html\n"
    echo "Hello!"
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Scroll broken/YouTube broken
    By AppleCider in forum iOS and Apps
    Replies: 2
    Last Post: 07-21-2012, 06:10 PM
  2. Broken Display or, as I call it: Broken Glass Image
    By Mr.Scade in forum Apple Desktops
    Replies: 5
    Last Post: 08-20-2010, 01:42 PM
  3. Keyboard to Shell ??
    By Kurt53 in forum macOS - Development and Darwin
    Replies: 1
    Last Post: 10-21-2008, 11:34 PM
  4. Replacing white MacBook shell with black MacBook shell.
    By Ricerind in forum Apple Notebooks
    Replies: 8
    Last Post: 08-27-2008, 01:58 PM
  5. OS X Tiger shell vs RedHat Fedora Linux shell?
    By AlexN in forum macOS - Operating System
    Replies: 2
    Last Post: 09-17-2005, 07:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts