LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Save output of libmemusage.so into a file (https://www.linuxquestions.org/questions/linux-software-2/save-output-of-libmemusage-so-into-a-file-739515/)

Consystor 07-12-2009 04:18 AM

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

Consystor 07-12-2009 04:29 AM

O.K., I have it. It must be
./progname > out.txt 2>&1

Regards


All times are GMT -5. The time now is 03:25 PM.