xfs
[Top] [All Lists]

re[2]: Snapshot regression test [WAS: re[6]: Summary - Snapshot Effort]

To: Michael Best <mbest@xxxxxxxxxxxxx>
Subject: re[2]: Snapshot regression test [WAS: re[6]: Summary - Snapshot Effort]
From: Greg Freemyer <freemyer@xxxxxxxxxxxxxxxxx>
Date: Tue, 27 Aug 2002 19:29:06 -0400
Cc: Nathan Scott <nathans@xxxxxxx>, <linux-xfs@xxxxxxxxxxx>
Organization: The NorcrossGroup
Sender: linux-xfs-bounce@xxxxxxxxxxx
Mike / Nathan,

I think I have it.  Thanks for your efforts.  Especially your Mike.

Putting the exec statement inside my timeout logic allows me to echo a failure 
message, then disable output and start killing things.

I have only tested in my test script, but I will be trying it in my 068 script 
soon.

Greg

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






Greg Freemyer
Internet Engineer
Deployment and Integration Specialist
Compaq ASE - Tru64 v4, v5
Compaq Master ASE - SAN Architect
The Norcross Group
www.NorcrossGroup.com


<Prev in Thread] Current Thread [Next in Thread>