On Wed, 27 Aug 2003 [EMAIL PROTECTED] wrote:

> Voytek Eymont <[EMAIL PROTECTED]> writes:
>
> > what did i stuff up..?
> >
> > # ./backmysql.sh
> > bash: ./backmysql.sh: /bin/bash: bad interpreter: Permission denied
>
> dos2unix backmysql.sh

Also I recommend you make a habit of using #!/bin/sh - may not matter for
you just now, but it's important for compatibility across different unix
systems.

* On at least some linux distributions, /bin/sh is usually (and
peculiarly) provided as a hard link to bash, but on many systems sh is a
much lighter executable without all the stuff for interactive use.

* Most non-linux systems don't have a file at /bin/bash.  /bin/sh will
always be there.

Andrew



--

No added Sugar.  Not tested on animals.  May contain traces of Nuts.  If
irritation occurs, discontinue use.

-------------------------------------------------------------------
Andrew McNaughton           In Sydney
                            Working on a Product Recommender System
[EMAIL PROTECTED]
Mobile: +61 422 753 792     http://staff.scoop.co.nz/andrew/cv.doc



-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to