From owner-freebsd-questions Sat Feb 2 18:32:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by hub.freebsd.org (Postfix) with ESMTP id 1119A37B402 for ; Sat, 2 Feb 2002 18:32:53 -0800 (PST) Received: from owt.com (owt-207-41-94-232.owt.com [207.41.94.232]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id SAA16059; Sat, 2 Feb 2002 18:32:47 -0800 Message-ID: <3C5CA14E.1050004@owt.com> Date: Sat, 02 Feb 2002 18:32:46 -0800 From: Kent Stewart User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: jacks@sage-american.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Running script in background References: <3.0.5.32.20020202202139.01917078@mail.sage-american.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 jacks@sage-american.com wrote: > I have a script that is to run continuously (sleeps 30 & loops) at root to > monitor an activity and if it sees a change, it runs another program. I > believe that can be run in the background, but don't recall how to do it. > > If the script were called #!/bin/sh silentwatch > What would be the command to launch it in the bg...??? Well, you can have combinations of "command &". If you want to leave it running and log of, you can "nohup" it. Kent -- Kent Stewart Richland, WA mailto:kbstew99@hotmail.com http://users.owt.com/kstewart/index.html FreeBSD News http://daily.daemonnews.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message