How to create a bash shell script in ubuntu 12.04
ogra at ubuntu.com
Fri Jun 8 16:28:39 UTC 2012
On Fri, 8 Jun 2012 17:16:11 +0100
Colin Law <clanlaw at googlemail.com> wrote:
> On 8 June 2012 17:09, user1 <bqz69 at telia.com> wrote:
> > I have made a shell script and made it executable as usual - I have
> > used shell scripts a lot.
> > When I run: $ ./example.sh 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
Size: 198 bytes
Desc: not available
More information about the ubuntu-users