![]() |
|
|
#1 |
|
Dec 2011
After milion nines:)
5·172 Posts |
I run mprime under console ( GUI -less) distro of Linux.
Then I stop mprime How to save content of console ( and those lines which I cannot see) to text file. I try this for last few hours and I cannot find answer Once I found it and it was simple command, but now I cannot find it any more. Any help? Thanks |
|
|
|
|
|
#2 | |
|
"Mark"
Apr 2003
Between here and the
11×577 Posts |
Quote:
|
|
|
|
|
|
|
#3 |
|
Dec 2011
After milion nines:)
5×172 Posts |
|
|
|
|
|
|
#4 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
973110 Posts |
Try something like "mprime -d | tee mprime_log.txt".
This will write the output of mprime to STDOUT (read: the console) as well as the mprime_log.txt file. Keep in mind that it is possible you saw the 0 bytes because of buffering; the "-d" debugging flag increases the output from mprime. |
|
|
|
|
|
#5 |
|
"Mike"
Aug 2002
100000001000002 Posts |
Code:
./mprime -d >> /path/to/file/filename & You can view the file "in real time" with: Code:
tail -f /path/to/file/filename |
|
|
|
|
|
#6 | |
|
Dec 2011
After milion nines:)
26458 Posts |
Quote:
Mprime has been stopped! So I wont all text that mprime produced while it was working send to some file for reading. |
|
|
|
|
|
|
#7 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
11100001101012 Posts |
Quote:
Fundamentally, there is no way to get text from the terminal's stdout after the fact. Re-read the above line, to be extra sure. Now, having absorbed that, the question as you seem to demand it be answered, cannot be answered. Instead, you must specify in some way, when you *start* mprime, that you want to save the text. His suggestion is arguably the best way to do so. Last fiddled with by Dubslow on 2015-09-24 at 20:03 |
|
|
|
|
|
|
#8 | |
|
Dec 2011
After milion nines:)
5·172 Posts |
Quote:
Will find way.. Thanks for answers |
|
|
|
|
|
|
#9 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
37·263 Posts |
Quote:
If you happen to have a GUI shell showing STDOUT, you can copy-and-paste the output. Only idiots rely on that. |
|
|
|
|
|
|
#10 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
There might be some OS-level tty logging somewhere... But I doubt it.
|
|
|
|
|
|
#11 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
my two cents: http://stackoverflow.com/questions/3...-window-closes comes up when you google search console to text file after console closes ( no quotes) but it's about windows.
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows concurrent output to the screen and a file. | petrw1 | Homework Help | 14 | 2018-04-26 22:45 |
| Additional File Output for Visualization Project | conere10 | Software | 7 | 2011-10-15 23:05 |
| prp output file | jasong | Sierpinski/Riesel Base 5 | 1 | 2005-03-13 05:41 |
| Iterations between results file output? | edorajh | Software | 8 | 2003-11-20 02:28 |
| Small windows programs to create and delete the stop.txt file for console ver NFSNET | dsouza123 | Programming | 0 | 2003-09-28 20:40 |