Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2001 10:23:00 -0500 (EST)
From:      Ian Patrick Thomas <ipthomas_77@yahoo.com>
To:        falbu@amnesty.org, freebsd-questions@freebsd.org
Subject:   Re: Redirecting STDERR from within the script
Message-ID:  <200102201523.KAA00311@scraemondaemon.mydomain.org>
In-Reply-To: <OF67019274.7918F01B-ON802569F8.0075C345@amnesty.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> From owner-freebsd-questions@freebsd.org Sat Jan  2 06:29:36 1999
> To: freebsd-questions@freebsd.org
> Subject: Redirecting STDERR from within the script
> From: falbu@amnesty.org
> Date: Mon, 19 Feb 2001 21:31:28 +0000
>
> Hello gurus,
>
> I was wondering if there's a way you can redirect stderr 
> from within the shell script that is running.
>
> For example, I have a shell script that I want to debug on a different 
> terminal. At a certain point in the script I want to start redirecting the 
>
> stderr to /dev/ttyv1 and after that turn on debugging (set -x).
>
> In my particular scenario it is _not_ possible to run the script from the 
> begining with the stderr redirected, like:
> myscript 2>/dev/ttyv1
>
> Many thanks,
> Florentin Albu
>
> Client-Server Systems Manager
> falbu@amnesty.org
> _________________________________________________________
>          Amnesty International, International Secretariat
>                      visit us at   http://www.amnesty.org
>
> Be Realistic! Plan for a Miracle!
>
>
> ONE click to stamp out torture.
>                                    http://www.stoptorture.org
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>
	With csh I use 
	
command >& /dev/ttyvn

	n being the terminal number or what have you.

Ian



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?200102201523.KAA00311>