How to create a bash shell script in ubuntu 12.04

Oliver Grawert ogra at
Fri Jun 8 16:28:39 UTC 2012

On Fri, 8 Jun 2012 17:16:11 +0100
Colin Law <clanlaw at> wrote:

> On 8 June 2012 17:09, user1 <bqz69 at> wrote:
> > I have made a shell script and made it executable as usual - I have
> > used shell scripts a lot.
> >
> > When I run: $ ./ I get: 'Cannot execute binary file'
> Are you sure it is not an error from something inside your script.
> Empty it and see what happens then.

or, instead of emptying it, add a "set -x" at the top, then run it and
see the debug output and where it hangs ;)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <>

More information about the ubuntu-users mailing list