From owner-freebsd-questions Tue Feb 20 7:23:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from eagle.prod.itd.earthlink.net (eagle.prod.itd.earthlink.net [207.217.120.24]) by hub.freebsd.org (Postfix) with ESMTP id 3743A37B4EC for ; Tue, 20 Feb 2001 07:23:39 -0800 (PST) (envelope-from ipthomas_77@yahoo.com) Received: from scraemondaemon.mydomain.org (ip169.buffalo11.ny.pub-ip.psi.net [38.26.224.169]) by eagle.prod.itd.earthlink.net (8.9.3-EL_1_3/8.9.3) with ESMTP id HAA20312; Tue, 20 Feb 2001 07:23:33 -0800 (PST) Received: (from ipthomas@localhost) by scraemondaemon.mydomain.org (8.9.3/8.9.3) id KAA00311; Tue, 20 Feb 2001 10:23:00 -0500 (EST) (envelope-from ipthomas) Date: Tue, 20 Feb 2001 10:23:00 -0500 (EST) From: Ian Patrick Thomas Message-Id: <200102201523.KAA00311@scraemondaemon.mydomain.org> To: falbu@amnesty.org, freebsd-questions@freebsd.org Subject: Re: Redirecting STDERR from within the script In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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