Greg Wooledge a écrit :
> On Mon, Oct 05, 2009 at 07:55:33PM +0200, clemens fischer wrote:
>>>>   {
>>>>       ... a number of commands
>>>>   } 2>&1 | ${prog_log} "${logfile}"
> 

> If you're having trouble debugging your script, and you want to be
> absolutely sure whether the commands in the braces are executing, you
> should use commands that affect the file system (touch, etc.).

I tend to do it like this:

{
   exec 2>/tmp/mytrace.$$
   set -x
   ...

} | whatever




Reply via email to