From owner-freebsd-questions@FreeBSD.ORG Sun Aug 8 12:40:20 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 EF67A16A4CE for ; Sun, 8 Aug 2004 12:40:20 +0000 (GMT) Received: from sccmmhc91.asp.att.net (sccmmhc91.asp.att.net [204.127.203.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id A869243D53 for ; Sun, 8 Aug 2004 12:40:18 +0000 (GMT) (envelope-from david.fleck@mchsi.com) Received: from grond (12-216-10-157.client.mchsi.com[12.216.10.157]) by sccmmhc91.asp.att.net (sccmmhc91) with SMTP id <20040808124017m91006u7gpe>; Sun, 8 Aug 2004 12:40:17 +0000 Date: Sun, 8 Aug 2004 07:40:16 -0500 (CDT) From: David Fleck Sender: dcf@grond.sourballs.org To: "Hakim Z. Singhji" In-Reply-To: <4115842C.2090907@earthlink.net> Message-ID: <20040808072043.S10021@grond.sourballs.org> References: <411318A8.4080100@earthlink.net> <20040806161222.O275@grond.sourballs.org> <4115842C.2090907@earthlink.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: questions@freebsd.org Subject: Re: Help Debugging Kshell Script??? 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: Sun, 08 Aug 2004 12:40:21 -0000 Unfortunately, I think the script you attached has been mangled in some way or other; it appears to be missing the end of the 'paging_mon' function, as well as whatever code invokes that function (and the swap_mon function as well). If I try to run it, I get: dcf>$ ./swap_mon.ksh \nSwap Space Report for grond.sourballs.org\n Sun Aug 8 07:31:26 CDT 2004 ./swap_mon.ksh: line 85: funtion: command not found ./swap_mon.ksh: line 135: syntax error: unexpected end of file if I fix the typo (funtion -> function) I just get the 'unexpected EOF' error. Both my 4.9 and 5.2.1 systems have /usr/bin/bc, so I assume it is part of the base install. However, neither system has 'lsps', which appears to be an AIX command. -- David Fleck david.fleck@mchsi.com