Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2001 14:43:58 +0100
From:      Robin Becker <robin@jessikat.fsnet.co.uk>
To:        freebsd-questions@freeBSD.ORG
Subject:   Re: Apache cgi in the background.
Message-ID:  <zXJdCWAemDz7Ew7w@jessikat.fsnet.co.uk>
In-Reply-To: <7mCP%2BIAxpCz7EwJA@jessikat.fsnet.co.uk>
References:  <7mCP%2BIAxpCz7EwJA@jessikat.fsnet.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <7mCP+IAxpCz7EwJA@jessikat.fsnet.co.uk>, Robin Becker
<robin@jessikat.fsnet.co.uk> writes
>I would like to start a long running job form an apache cgi script, but
>I can't seem to get the job to detach and run asynchronously.
>
>Does any body know how to accomplish this?
well I figured out that something of the form

cd $WDIR;/usr/bin/nohup /usr/local/bin/detach command args

works, but I'm not sure if I need the nohup. Also I need to lock this
command so no one starts another job from the web. Is there an easy way
to lock sh scripts?
-- 
Robin Becker

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?zXJdCWAemDz7Ew7w>