LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

Rep: Reputation: 15
Redirecting debug info to another file


Hi,
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).

Regards,
Subu
 
Old 12-07-2004, 01:15 PM   #2
walker
Member
 
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??
cheers
walker
 
  


Reply


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(bash.info.gz) 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 04:45 AM.

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