How to create a bash shell script in ubuntu 12.04

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


hi,
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 ;)

ciao
	oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120608/68561c37/attachment.pgp>


More information about the ubuntu-users mailing list