From owner-freebsd-questions Thu Jun 20 17: 7:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tomts11-srv.bellnexxia.net (tomts11.bellnexxia.net [209.226.175.55]) by hub.freebsd.org (Postfix) with ESMTP id 688FF37B403 for ; Thu, 20 Jun 2002 17:07:10 -0700 (PDT) Received: from YANGTX ([64.228.133.85]) by tomts11-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with SMTP id <20020621000710.BPRZ26542.tomts11-srv.bellnexxia.net@YANGTX>; Thu, 20 Jun 2002 20:07:10 -0400 Message-ID: <002201c218b7$e0c601f0$0100a8c0@YANGTX> From: "Hongbin Yang" To: "Dan Nelson" Cc: References: <001201c2187d$5e8be400$0100a8c0@YANGTX> <20020620225507.GA69670@dan.emsphone.com> Subject: Re: question to run linux program Date: Thu, 20 Jun 2002 20:09:14 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 I got it. It means that freebsd provides linux emulator for all of kinds of shells. Thanks Dan. yang > 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