Re: executing an executable

2007-09-17 Thread Igor Peshansky
On Sun, 16 Sep 2007, Cole Radcliffe wrote:

 I do an ls -la and I see I have an executable called executable.exe.
 I chmod to 777. Then I try to type execut and I press tab and it
 does not find it. When I type in the entire name and press enter, bash
 says the command is not found! It works fine on cygwin-x.

The FAQ is your friend:
http://cygwin.com/faq/faq.using.html#faq.using.not-found.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



executing an executable

2007-09-16 Thread Cole Radcliffe
I do an ls -la and I see I have an executable called executable.exe.
I chmod to 777. Then I try to type execut and I press tab and it
does not find it. When I type in the entire name and press enter, bash
says the command is not found! It works fine on cygwin-x.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: executing an executable

2007-09-16 Thread Markus E L

Cole Radcliffe wrote:

 I do an ls -la and I see I have an executable called executable.exe.
 I chmod to 777. Then I try to type execut and I press tab and it
 does not find it. When I type in the entire name and press enter, bash
 says the command is not found! It works fine on cygwin-x.

Type ./executable or set your PATH variable to include . (the latter
is usually not recommended, even in cygwin, I think).

And try to read up about PATH.

Regards -- Markus



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



executing an executable

2007-09-16 Thread Cole Radcliffe
Cole Radcliffe wrote:

 I do an ls -la and I see I have an executable called executable.exe.
 I chmod to 777. Then I try to type execut and I press tab and it
 does not find it. When I type in the entire name and press enter, bash
 says the command is not found! It works fine on cygwin-x.

Type ./executable or set your PATH variable to include . (the latter
is usually not recommended, even in cygwin, I think).

And try to read up about PATH.

Regards -- Markus

I tried set PATH=.:$PATH and that did not work. When I echoed the
$PATH I realized that that command had no effect. What am I doing
wrong?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: executing an executable

2007-09-16 Thread Markus E L

 Cole Radcliffe wrote:

  Cole Radcliffe wrote:
 
  I do an ls -la and I see I have an executable called executable.exe.
  I chmod to 777. Then I try to type execut and I press tab and it
  does not find it. When I type in the entire name and press enter, bash
  says the command is not found! It works fine on cygwin-x.
 
  Type ./executable or set your PATH variable to include . (the latter
  is usually not recommended, even in cygwin, I think).
 
  And try to read up about PATH.
 
  Regards -- Markus

 I tried set PATH=.:$PATH and that did not work. When I echoed the
 $PATH I realized that that command had no effect. What am I doing
 wrong?

You're using bash? Then don't use 'set'. The syntax is

  varname=string-expression

Instead 

  set somethings ...

sets the argument vector [EMAIL PROTECTED]

It pays to read an introductory text on using the shell. Use one for
Linux if you like, the shell is the same. Else you'll be pretty
unhappy really soon and back here when (a) You're using shell
metacharacter somewhere, (b) you get quoting problems, (c) you need to
redirekt I/O, (d) You got filenames with whitespace in them or '-' at
the beginning, or (e) some other environment variable setting is wron
-- just to name some of the common problems for shell beginners :-).

And then I expect you'll get flamed sooner or later (more likely
sooner) because this is OT and not cygwin specific and I get flamed
and/or TITTTLed because I even answered.

So really try to look for some documentation on this issues. Time is
running out :-).

Regards -- Markus



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: executing an executable

2007-09-16 Thread Gary Johnson
On 2007-09-16, Cole Radcliffe wrote:
 Cole Radcliffe wrote:
 
  I do an ls -la and I see I have an executable called executable.exe.
  I chmod to 777. Then I try to type execut and I press tab and it
  does not find it. When I type in the entire name and press enter, bash
  says the command is not found! It works fine on cygwin-x.
 
 Type ./executable or set your PATH variable to include . (the latter
 is usually not recommended, even in cygwin, I think).
 
 And try to read up about PATH.
 
 Regards -- Markus
 
 I tried set PATH=.:$PATH and that did not work. When I echoed the
 $PATH I realized that that command had no effect. What am I doing
 wrong?

Cygwin's default shell is bash and bash does not use 'set' to set 
environment variables.  Just execute this:

   PATH=.:$PATH

Regards,
Gary

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: executing an executable

2007-09-16 Thread Markus E L

Cole Radcliffe wrote:

 Type ./executable or set your PATH variable to include . (the latter
 is usually not recommended, even in cygwin, I think).

 And try to read up about PATH.

 Regards -- Markus

 I tried set PATH=.:$PATH and that did not work. When I echoed the
 $PATH I realized that that command had no effect. What am I doing
 wrong?

BTW: Please consider improving you quoting. For a moment I thought my
MUA had been acting up again and I sent a mail with your address in
the From field. :-(

Regards -- Markus



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



re: executing an executable

2007-09-16 Thread Cole Radcliffe
Thanks. I set the PATH!

You are definitely right about my quoting problem. MARKUS, you are
definitely right about my quoting problem. I do not want to recieve so
many e-mails so I do not subscribe to the list. I just copied and
pasted it from the website.
Is there an alternative? Can I make a folder with gmail that catches
all of the cygwin e-mails?

And then I expect you'll get flamed sooner or later (more likely
sooner) because this is OT and not cygwin specific and I get flamed
and/or TITTTLed because I even answered.

What is OT and what do you mean this is not cygwin specific?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: executing an executable

2007-09-16 Thread Christopher Faylor
On Sun, Sep 16, 2007 at 06:48:45PM -0500, Cole Radcliffe wrote:
Thanks. I set the PATH!

You are definitely right about my quoting problem. MARKUS, you are
definitely right about my quoting problem. I do not want to recieve so
many e-mails so I do not subscribe to the list. I just copied and
pasted it from the website.
Is there an alternative? Can I make a folder with gmail that catches
all of the cygwin e-mails?

And then I expect you'll get flamed sooner or later (more likely
sooner) because this is OT and not cygwin specific and I get flamed
and/or TITTTLed because I even answered.

What is OT and what do you mean this is not cygwin specific?

Markus has an overly active imagination about what constitutes a flame
but what he is alluding to is that this mailing list is not designed to
handle beginner shell questions or questions about how you should use
your email client.  For those type of discussions you should seek other
forums since the discussions are Off Topic here.

For shell questions you can go here:
http://groups.google.com/group/comp.unix.shell/

google could probably find other places also.

I don't know about gmail but it does have its own help system so that's
probably where you should start.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/