LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-29-2010, 06:58 PM   #1
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Redirect the output of LD_DEBUG to a text file


Code:
$ sudo LD_DEBUG=all chroot "$PWD" > ~/chroot_debug.txt #This doesn't work
$ sudo `LD_DEBUG=all chroot "$PWD"` > ~/chroot_debug.txt #This doesn't work
$ sudo $(LD_DEBUG=all chroot "$PWD") > ~/chroot_debug.txt #This still doesn't work!
What else can I do?!
 
Old 10-29-2010, 07:55 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Try redirecting stderr:

Code:
LD_DEBUG=all ls 2> tmp.txt
Code:
     14170:
     14170:     file=librt.so.1 [0];  needed by /bin/ls [0]
     14170:     find library=librt.so.1 [0]; searching
     14170:      search cache=/etc/ld.so.cache
     14170:       trying file=/lib/tls/librt.so.1
     14170:
     14170:     file=librt.so.1 [0];  generating link map
     14170:       dynamic: 0x40038ee0  base: 0x40031000   size: 0x00008268
     14170:         entry: 0x40032dc0  phdr: 0x40031034  phnum:         10
     14170:
     14170:
     14170:     file=libacl.so.1 [0];  needed by /bin/ls [0]
     14170:     find library=libacl.so.1 [0]; searching
     14170:      search cache=/etc/ld.so.cache
     14170:       trying file=/lib/libacl.so.1
     14170:
     14170:     file=libacl.so.1 [0];  generating link map
     14170:       dynamic: 0x4003f014  base: 0x4003a000   size: 0x000051ec
     14170:         entry: 0x4003b360  phdr: 0x4003a034  phnum:          4
     14170:
     ...
 
  


Reply



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
How to redirect the SCP command output to text file. gokuls Linux - General 10 02-22-2012 02:12 AM
How to parse text file to a set text column width and output to new text file? jsstevenson Programming 12 04-23-2008 02:36 PM
How to redirect output to a file? mus1402 Linux - Newbie 2 02-05-2006 09:42 AM
redirect screen output to file timbuck Linux - Software 5 12-09-2005 06:57 PM
trying to redirect text to a file to cat at later point. says file doesn't exist. dr_zayus69 Programming 1 10-02-2005 08:10 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration