Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-06-2004, 11:12 PM   #1
Registered: Jun 2004
Posts: 36

Rep: Reputation: 15
Redirecting debug info to another file

Is it possible in shell scripts to redirect only the debug info to another file?

i.e. If I run the script as sh -v or sh -x or if I selectively turn it on inside a script, by set -x, -v the o/p shld automatically go to another file. The basic output should still come on to the screen (all the echo's).

Old 12-07-2004, 01:15 PM   #2
Registered: Nov 2003
Posts: 75

Rep: Reputation: 15
Did you try the easiest way???
using "2>" to redirect the standard error to whatever you want??


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirecting to file and stdout Quantum0726 Programming 3 11-14-2005 08:35 PM
Convert an info file( to a single html file Darwish Linux - Software 2 09-24-2005 06:51 AM
why when redirecting output to a file any file extension seems to be fine? dr_zayus69 Linux - General 1 05-21-2005 04:09 AM
rpmbuild without stripping debug info gdaly77 Linux - Software 0 05-27-2004 02:43 PM
redirect debug info raven Linux - General 1 11-20-2002 08:16 AM

All times are GMT -5. The time now is 11:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration