View Full Version : what is the problem her ??? (shebang line)
iQueen
Mar 6, 2008, 07:24 PM
this is my first Q>>>:D
and this is my frist problem
what is the problem her ???
http://www6.0zz0.com/2008/03/07/00/621231606.png
Thanks
iQueen
Mar 6, 2008, 07:31 PM
ooooooh >>>>:mad:
wher is my picture???
Please use actual words, with meaning, and fully explain what your problem is.
TEG
iQueen
Mar 6, 2008, 07:40 PM
OK >>:o Iam not good english speker
this is problem window shaw when I click run button in the TextWrangler
programe
angelwatt
Mar 6, 2008, 08:05 PM
The shebang is
#! followed by the destination to the program you're running
See wikipedia for further info. (http://en.wikipedia.org/wiki/Shebang_%28Unix%29)
iQueen
Mar 6, 2008, 08:17 PM
I knaw #!====run
but what is the problem in this window
http://www6.0zz0.com/2008/03/07/00/621231606.png
angelwatt
Mar 6, 2008, 08:19 PM
I knaw #!====run
but what is the problem in this window
http://www6.0zz0.com/2008/03/07/00/621231606.png
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.
iQueen
Mar 10, 2008, 04:09 PM
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>
angelwatt
Mar 10, 2008, 07:01 PM
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.
iQueen
Mar 11, 2008, 12:38 PM
oops>>>>:eek:
that write
thanks
grizzlybrice
Mar 11, 2008, 12:57 PM
http://youtube.com/watch?v=Zcc8dTqflh8
Couldn't help it. Sorry.
:D
gB
notnek
Mar 13, 2008, 12:39 PM
I think it's appropriate.
iQueen
Mar 14, 2008, 07:34 AM
http://youtube.com/watch?v=Zcc8dTqflh8
Couldn't help it. Sorry.
:D
gB
this is the best .
i don't like american music.
thank you american culture.
you would see my music culture .
elissa (http://www.melody4arab.net/songs/en_view_songs_376.htm)
redAPPLE
Mar 14, 2008, 08:18 AM
this is the best .
i don't like american music.
thank you american culture.
you would see my music culture .
elissa (http://www.melody4arab.net/songs/en_view_songs_376.htm)
and your point is?
notnek
Mar 14, 2008, 09:02 AM
lol.
hoangluong
Jan 13, 2009, 05:59 AM
this is my first Q>>>:D
and this is my frist problem
what is the problem her ???
http://www6.0zz0.com/2008/03/07/00/621231606.png
Thanks
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!
angelwatt
Jan 13, 2009, 07:44 AM
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!
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.
vBulletin® v3.6.10, Copyright ©2000-2009, Jelsoft Enterprises Ltd.