From owner-freebsd-questions@FreeBSD.ORG Thu Oct 7 14:07:29 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 187E016A4CE for ; Thu, 7 Oct 2004 14:07:29 +0000 (GMT) Received: from mailgw-20.stcloudstate.edu (exchange8.stcloudstate.edu [199.17.25.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9AD743D45 for ; Thu, 7 Oct 2004 14:07:28 +0000 (GMT) (envelope-from bepratt@stcloudstate.edu) Received: from exchange2.campus.stcloudstate.edu [199.17.25.200] by mailgw-20.stcloudstate.edu with XWall v3.31 ; Thu, 7 Oct 2004 09:07:36 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 7 Oct 2004 09:07:31 -0500 Message-ID: <22ECDF671FCD564398087D64CFCF46BD056E08D4@EXCHANGE.campus.stcloudstate.edu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Shell script error Thread-Index: AcSsdvl5Kq7XyHgnQxObKuA3WrPCxw== From: "Pratt, Benjamin E." To: Subject: Shell script error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2004 14:07:29 -0000 Hello, it's me again. This time I'm trying to do some shell scripting=20 but I'm running into a problem with a randomization script that I found=20 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,=20 Knoppix-STD, PHLAK) but when I run the script on FreeBSD or OpenBSD I get=20 errors. I'm mainly running FreeBSD 5.3-BETA right now with /shells/bash2=20 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=20 didn't make any difference. If anyone knows why this won't run, or if anyone has another example of=20 getting a random character (I'd eventually like to generate a random=20 hexadecimal character) I'd love to hear from you. Thanks, Ben