From owner-freebsd-questions Thu Jun 20 15:55:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 4245537B40A for ; Thu, 20 Jun 2002 15:55:08 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.12.3/8.12.3) id g5KMt75K077615; Thu, 20 Jun 2002 17:55:07 -0500 (CDT) (envelope-from dan) Date: Thu, 20 Jun 2002 17:55:07 -0500 From: Dan Nelson To: Hongbin Yang Cc: freebsd-questions@FreeBSD.ORG Subject: Re: question to run linux program Message-ID: <20020620225507.GA69670@dan.emsphone.com> References: <001201c2187d$5e8be400$0100a8c0@YANGTX> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001201c2187d$5e8be400$0100a8c0@YANGTX> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Jun 20), Hongbin Yang said: > Hi all, > > As we know "brandelf" can be use to run linux binary. > > Now my question is : I have a linux application. Its executable is a > piece of script. The line that starts the job is "exec XXXXX ......". > How can I change to make it run in freebsd box? If what you're saying is you have a Linux software package, with scripts and binaries in it, and the binaries run fine, but you also want the scripts to run in Linux emulation as well, you can edit the first line of the scripts to read #! /compat/linux/bin/sh (or bash, if that's what they had before). If you're saying you have a standalone shell script and you want to run it, just run it. It'll work. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message