| To: | Greg Freemyer <freemyer@xxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: Snapshot regression test [WAS: re[6]: Summary - Snapshot Effort] |
| From: | Michael Best <mbest@xxxxxxxxxxxxx> |
| Date: | Tue, 27 Aug 2002 17:08:16 -0600 |
| Cc: | Nathan Scott <nathans@xxxxxxx>, linux-xfs@xxxxxxxxxxx |
| References: | <20020827224340.DMIR2113.imf22bis.bellsouth.net@TAZ2> |
| Sender: | linux-xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020722 |
If you want your script to send all output to /dev/null this works
pretty good, I have tried several things to turn off redirection to
null, but have come up empty.
exec >/dev/null 2>&1 # Send all output to /dev/null
The subshell thing was one I had considered, but I experimented with it
early and wasn't sure about how you were killing the subprocess so I
abandoned investigation of that. Anyhow, with more of the code I'm sure
I could come up with something.
My test script which I got working was something along the lines of:
exec >/dev/null 2>&1
while true; do
sleep 1
done &
wait
# something to turn off redirection
Anyhow, good luck.
-Mike
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Hacking XFS (was Re: reserve space for root?), James Rich |
|---|---|
| Next by Date: | Re: Hacking XFS (was Re: reserve space for root?), Alexander Kabaev |
| Previous by Thread: | re[2]: Snapshot regression test [WAS: re[6]: Summary - Snapshot Effort], Greg Freemyer |
| Next by Thread: | re[2]: Snapshot regression test [WAS: re[6]: Summary - Snapshot Effort], Greg Freemyer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |