public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* running shell scripts
@ 2002-06-10  2:07 Steven Weiss
  2002-06-10  8:53 ` Mathias Gygax
  2002-06-10  9:29 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 2 replies; 14+ messages in thread
From: Steven Weiss @ 2002-06-10  2:07 UTC (permalink / raw)
  To: cygwin

Hi

/Develop/test/bin> chmod 755 work
/Develop/test/bin> ls -l work
-rwxr-xr-x    1 dbadmin Administ       27 Jun  9 20:18 work
/Develop/test/bin> ./work
bash: ./work: No such file or directory

I am trying to running a shell script from an interactive bash session. I
get the following error when running the shell script. It seems to work when
I put the #! /cygwin/bin/bash inside the script. Surely the script should
run with the execute permissions set as they are.

Regards
Steven
----------------------------------------
sweiss@iafrica.com
+27 21 7892985 (h)
+27 827715157 (m)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: running shell scripts
@ 2000-02-15 16:01 Earnie Boyd
  2000-02-15 16:56 ` Jens Skakkebaek
  0 siblings, 1 reply; 14+ messages in thread
From: Earnie Boyd @ 2000-02-15 16:01 UTC (permalink / raw)
  To: Bob McGowan, jskakkebaek; +Cc: cygwin

--- Bob McGowan <Robert.McGowan@veritas.com> wrote:
> Jens,
> 
> Check the scripts' first line, the #! one.  Be sure that it reference
> bash and that the path used is also correct.  
> As in:  #!/bin/bash
> 
> Be sure you have a /bin/bash.exe for the above to work.

Why bash instead of sh?  Sh is much more lightweight and faster to invoke!! 
That is the reason ash was used for sh.


=====
---
   Earnie Boyd: < mailto:earnie_boyd@yahoo.com >
            __Cygwin: POSIX on Windows__
Cygwin Newbies: < http://www.freeyellow.com/members5/gw32/index.html >
           __Minimalist GNU for Windows__
  Mingw32 List: < http://www.egroups.com/group/mingw32 >
    Mingw Home: (Coming Soon)
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 14+ messages in thread
* running shell scripts
@ 2000-02-15 11:48 Jens Skakkebaek
  2000-02-15 12:01 ` Bob McGowan
  2000-02-15 12:03 ` John Fortin
  0 siblings, 2 replies; 14+ messages in thread
From: Jens Skakkebaek @ 2000-02-15 11:48 UTC (permalink / raw)
  To: cygwin

Hi,

I'm trying to run the Postgres database from cygwin and have got the main
database to work.
However, there a number of shell scripts that I cant run.  E.g., I get a "no
such file or directory" error when I tried to run some of the scripts. It
prints out the path correctly, so that's not the problem.

Prefixing it with the full path does not help.

Any pointers would be greatly appreciated.

Thanks in advance,

Jens Skakkebaek
jskakkebaek@adomo.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-06-10 17:22 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-10  2:07 running shell scripts Steven Weiss
2002-06-10  8:53 ` Mathias Gygax
2002-06-10  9:08   ` wayne
2002-06-10 11:19     ` Mathias Gygax
2002-06-10 11:38       ` David T-G
2002-06-10 12:10         ` Mathias Gygax
2002-06-10 12:51           ` David T-G
2002-06-10  9:29 ` Larry Hall (RFK Partners, Inc)
2002-06-10  9:36   ` David T-G
  -- strict thread matches above, loose matches on Subject: below --
2000-02-15 16:01 Earnie Boyd
2000-02-15 16:56 ` Jens Skakkebaek
2000-02-15 11:48 Jens Skakkebaek
2000-02-15 12:01 ` Bob McGowan
2000-02-15 12:03 ` John Fortin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).