Re: [SLUG] Bash shell script logging.

From: herrold (herrold@owlriver.com)
Date: Thu Oct 11 2001 - 10:54:31 EDT


On Thu, 11 Oct 2001, Brett Simpson wrote:

> I have a Bash shell script that I need generate a log of what
> happens when it runs. When I use #!/bin/bash -x I get a verbose
> listing of everything that happens. Is there a way I can output
> this to a file for logging?

  ummm ...

   ./scriptname 2>&1 | tee -a long-term-log

   ./scriptname > one-off-log 2>&1

-- Russ



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:13:36 EDT