what is the problem her ??? (shebang line)

Discussion in 'Web Design and Development' started by iQueen, Mar 6, 2008.

  1. macrumors newbie

    Joined:
    Mar 4, 2008
    #1
    this is my first Q>>>:D

    and this is my frist problem

    what is the problem her ???

    [​IMG]


    Thanks
     
  2. thread starter macrumors newbie

    Joined:
    Mar 4, 2008
  3. TEG
    macrumors 604

    TEG

    Joined:
    Jan 21, 2002
    Location:
    Langley, Washington
    #3
    Please use actual words, with meaning, and fully explain what your problem is.

    TEG
     
  4. thread starter macrumors newbie

    Joined:
    Mar 4, 2008
    #4
    OK >>:eek: Iam not good english speker

    this is problem window shaw when I click run button in the TextWrangler

    programe
     
  5. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #5
  6. thread starter macrumors newbie

    Joined:
    Mar 4, 2008
    #6
    I knaw #!====run
    but what is the problem in this window

    [​IMG]
     
  7. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #7
    Like it says, your shebang isn't valid. Make sure it's the first line and pointing toward an application. If you post the text of the document we might be able to better help.
     
  8. thread starter macrumors newbie

    Joined:
    Mar 4, 2008
    #8
    iam sorry for late >>>>this is simple code

    save as (.html)




    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>My first script</title>
    </head>
    <body bgcolor="#FFFFFF">
    <h1>
    <script language="Javascript" type="text/javascript">

    document.write("Hello, world!")

    </script>
    </h1>
    </body>
    </html>
     
  9. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #9
    What you listed is a web page, which should be run in a browser, not from the "!#" menu in TextWrangler. That !# menu is for executing scripts that are also runnable from Terminal, such as a bash script, or perl, python, ruby, etc., but not for HTML.
     
  10. thread starter macrumors newbie

    Joined:
    Mar 4, 2008
  11. macrumors regular

    grizzlybrice

    Joined:
    Mar 10, 2005
    Location:
    Playa Del Rey, CA
  12. macrumors 6502

    notnek

    Joined:
    Oct 25, 2007
  13. thread starter macrumors newbie

    Joined:
    Mar 4, 2008
    #13
  14. macrumors 68030

    redAPPLE

    Joined:
    May 7, 2002
    Location:
    2 Much Infinite Loops
    #14
    and your point is?
     
  15. macrumors 6502

    notnek

    Joined:
    Oct 25, 2007
  16. macrumors member

    hoangluong

    Joined:
    Jan 12, 2009
    Location:
    Sydney, Australia
    #16
    Hi, I've got exactly the same problem as this one. The only difference is that I got it when I tried to run a simple C program within Text Wrangler. I wrote it using Text Wrangler and instead of running GCC in Terminal to execute this C program I'd tried to run it from within Text Wrangler by clicking #! Run File or #! Run in Terminal.

    I got this warning message exactly at this point, and I don't know how to resolve this because I'm extremely new to programming and C language is my 1st thing I'm working on. Please give me some help.

    Thanks a bunch!
     
  17. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #17
    Provide what you have at the top of your file, namely the shebang line (the first line). If you don't have a shebang line, that's your problem, and it has been detailed above if you read the thread. Also, have you tried the ideas presented in the thread as this has already been answered?

    Also. realize the run option in TextWrangler is for running Unix scripts and interpreted languages like Perl and Python, not C, which has to be compiled before running. I'm not sure if you're trying to run your C program from TextWrangler (which won't work directly) or if you're trying to run a compiler script on your C code file.
     

Share This Page