Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Oct 2004 09:01:54 -0700
From:      Andrew Moran <amoran@forsythia.net>
To:        "Pratt, Benjamin E." <bepratt@stcloudstate.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Shell script error
Message-ID:  <35A62D03-187A-11D9-8881-000D93B1D960@forsythia.net>
In-Reply-To: <22ECDF671FCD564398087D64CFCF46BD056E08D4@EXCHANGE.campus.stcloudstate.edu>
References:  <22ECDF671FCD564398087D64CFCF46BD056E08D4@EXCHANGE.campus.stcloudstate.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

That script works fine for me on my box and I'm also running FreeBSD 
5.3-BETA with bash2.

What kind of error are you getting?   What  is the output of "bash -x 
<scriptname.sh>" (filling in the script name of course).

--Andy


On Oct 7, 2004, at 7:07 AM, Pratt, Benjamin E. wrote:

> Hello, it's me again.  This time I'm trying to do some shell scripting
> but I'm running into a problem with a randomization script that I found
> on the web.  The script I'm trying to run can be found at:
> http://www.bsdbooks.net/shells/scripting/randomvar.html#PICKCARD.
>
> Everything runs fine on different Linux systems that I've used (Red Hat
> 9,
> Knoppix-STD, PHLAK) but when I run the script on FreeBSD or OpenBSD I
> get
> errors.  I'm mainly running FreeBSD 5.3-BETA right now with
> /shells/bash2
> installed so that's where I'd really like to get it running.
>
> I did change the first line to point to /usr/local/bin/bash but that
> didn't make any difference.
>
> If anyone knows why this won't run, or if anyone has another example of
> getting a random character (I'd eventually like to generate a random
> hexadecimal character) I'd love to hear from you.
>
> Thanks,
>
> Ben
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35A62D03-187A-11D9-8881-000D93B1D960>