LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-12-2009, 05:18 AM   #1
Consystor
LQ Newbie
 
Registered: Jul 2003
Location: Germany (BW)
Posts: 23

Rep: Reputation: 0
Save output of libmemusage.so into a file


Hello together!

To determine the memory usage of a process in its complete runtime I use libmemusage.so by
export LD_PRELOAD=/lib64/libmemusage.so

If I run a program and it exits then I get a statistic to my console window but I would like to save the output of libmemusage into a file.
The following doesn't work:

./progname > out.txt
./progname 2>&1 > out.txt

Do you know a way how I could save the output automatically or do you know a tool which do the same like the libmemusage library?

Many thanks for you help!

Regards,
Lukas
 
Old 07-12-2009, 05:29 AM   #2
Consystor
LQ Newbie
 
Registered: Jul 2003
Location: Germany (BW)
Posts: 23

Original Poster
Rep: Reputation: 0
O.K., I have it. It must be
./progname > out.txt 2>&1

Regards
 
  


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
How can I save gcc output in a file ? techsavvy Linux - General 3 06-24-2008 08:38 AM
how to save output of 'fuser' to a file p_raju AIX 5 05-31-2008 05:18 AM
how to save output of 'fuser' to a file p_raju Linux - General 2 05-28-2008 11:50 AM
Screen Listing Output Save in a File rolly frando Linux - Newbie 3 07-04-2005 02:23 AM
PHP: save output to a file mikeshn Programming 2 10-25-2003 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration