Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Feb 2002 18:32:46 -0800
From:      Kent Stewart <kstewart@owt.com>
To:        jacks@sage-american.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Running script in background
Message-ID:  <3C5CA14E.1050004@owt.com>
References:  <3.0.5.32.20020202202139.01917078@mail.sage-american.com>

next in thread | previous in thread | raw e-mail | index | archive | help


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C5CA14E.1050004>