From owner-freebsd-current@FreeBSD.ORG Thu Jul 14 21:01:42 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 287D816A41C for ; Thu, 14 Jul 2005 21:01:42 +0000 (GMT) (envelope-from nj18@nerdshack.com) Received: from kelly.nerdshack.com (kelly.nerdshack.com [209.189.235.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id C525443D49 for ; Thu, 14 Jul 2005 21:01:41 +0000 (GMT) (envelope-from nj18@nerdshack.com) Received: from dispatchd.nerdshack.com (julie.nerdshack.com [209.189.235.39]) by kelly.nerdshack.com (Postfix) with SMTP id 3ABBE902D3 for ; Thu, 14 Jul 2005 15:59:54 -0500 (CDT) Received: from 85.95.160.34 (ns.szrt.ru [85.95.160.34]) by mail.nerdshack.com with ESMTP Thu, 14 Jul 2005 15:59:21 -0500 Message-ID: <42D6D2B7.2080406@nerdshack.com> Date: Thu, 14 Jul 2005 17:01:43 -0400 From: nj18 User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050711 X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Current Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Strange message: Text file busy. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 21:01:42 -0000 Ed Schouten wrote: >* nj18 wrote: > > >>>echo date >somescript >>>chmod +x somescript >>>./somescript >>> >>> >>./somescript: Text file busy. >> >> > >What if you put the following contents in somescript: > >#!/bin/sh >date > >I guess FreeBSD 4.6 takes /bin/sh as the interpreter by default, but >FreeBSD 5 and higher don't. > >Yours, > > I compiled src/bin/echo/ from FreeBSD 5.2.1 disk. It works fine: > ./echo date >somescript > chmod +x somescript > ./somescript Thu Jul 14 17:00:43 EDT 2005 >