From owner-freebsd-questions@FreeBSD.ORG Fri Aug 6 04:41:50 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 24E0E16A4CE for ; Fri, 6 Aug 2004 04:41:50 +0000 (GMT) Received: from asmtp-a063f31.pas.sa.earthlink.net (asmtp-a063f31.pas.sa.earthlink.net [207.217.120.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC27043D3F for ; Fri, 6 Aug 2004 04:41:49 +0000 (GMT) (envelope-from hakim.singhji@earthlink.net) Received: from user-0cceq8c.cable.mindspring.com ([24.199.105.12] helo=earthlink.net)(TLSv1:AES256-SHA:256) (Exim 4.34) id 1BswY9-0003tf-Ed; Thu, 05 Aug 2004 21:41:49 -0700 Message-ID: <41130C20.4070409@earthlink.net> Date: Fri, 06 Aug 2004 00:42:08 -0400 From: "Hakim Z. Singhji" Organization: New York University User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: mailing.freebsd.hackers To: nytalk-nylug@nylug.org, questions@freebsd.org, jason@lehman.cuny.edu X-Enigmail-Version: 0.83.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------090700030103000703080709" X-ELNK-Trace: 59e746354e49a56ad5e26e230a8c4dea74bf435c0eb9d47882885355c204f66b84429dff8244e25727390ce76c48814b350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 24.199.105.12 Subject: 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: Fri, 06 Aug 2004 04:41:50 -0000 This is a multi-part message in MIME format. --------------090700030103000703080709 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Everyone, I need some help with this shell script. I originally wrote it in ksh and I not really familiar with bash. However, that is what I'm using at home now and I don't have ksh on any of my machines... Could you folks help me convert this script to bash...I don't think the arithmatic operator is a bash option. It appears that is where the first bug is at. Please see the attached (encrypted/compressed) script for any additional details. You must import my public key to open the attached file. ********************************************************** gpg --decrypt swap_mon.ksh.sig ********************************************************** Thanks in advance HZS -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBEwwglT9WV6TztkoRAnGcAJ4tVU6pQLp6ZQIBGWcjkTrVsEI6mACfWG9Y AIjZC7q4Doa6440/Gk1YgPI= =Yvuq -----END PGP SIGNATURE----- --------------090700030103000703080709 Content-Type: text/plain; name="swap_mon.ksh.sig" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="swap_mon.ksh.sig" -----BEGIN PGP MESSAGE----- Version: GnuPG v1.2.4 (GNU/Linux) owG9V89v21Qc71ohFAsQEweu3zap1qI1SVEYYLUaTvKyGJI4sp0WRlBx7JfYa/Ic 2c9bC9sdMSFxAYkTB7hw4MqZw06TuHDjH0AcEBfEbpP4PjtO01ZNQWr3pGm1/f31 +Xy/7/NevnxxaWHx6lc3d3a///und6/8+NKvvRfCe9Z4b+Sz/H7oKq9IS9kLXVJ2 GQpRGBR6HitghkyyIF7SxebCZAAVnSgmqe6VP5Chbu17I7idB8NjA/eOdxn5jIqu tk0ZYMrjJynKywNZRYiY8q1CqVAsXTqlO0Q3VK0lQzG/mbn0bO2GYtY0vSlDw2PR AWhseHj5STt6WzMEp6brhRC6dDiE0A68MQd8jkLqAPdhHPhOZFOwIKBjP+Dg94G7 FMLDkNPRtTAeAhABj1Y4ttAj5Bb3Qu7ZIXjMHkYOTqQMps+tIYytAT5NDD0GzfJ1 /Cdi9wNKT4SbNU7N4vLiDzT9sCreHwscG1nMORHvtKFIehkc62QHGqphypJ4CimH jQOALHSY7Y9GlHHBsEN70QA5PdGEqQc75WG71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MZlESkye8eFJ8NDUalBTG3OvTDPxPru59NyC +CGb/sy9uvj8o4VvD159+N0Pj//84umbnd8f/vP4/Zf7n9OFb664T+9+/Ndvf3S3 vn5UX/z5ycrSL9f+BQ== =3pCO -----END PGP MESSAGE----- --------------090700030103000703080709--