I used to do sed and awk and stuff, but it is a long time ago.
Looking at your stuff, cut seems the most promising. cut -d " " -f4 really should work.
But it doesn't.
1. Let's output jack_cpu_load to a file...
Code: Select all
$ jack_cpu_load >xxx
^Csignal received, exiting ...
2. Let's see what we have in the file...
Code: Select all
$ cat xxx
jack DSP load 0.381236
jack DSP load 0.390884
jack DSP load 0.354795
jack DSP load 0.371873
jack DSP load 0.373283
jack DSP load 0.371836
jack DSP load 0.366441
3. Let's try the cut command with that data...
Code: Select all
$ cat xxx | cut -d " " -f4
0.381236
0.390884
0.354795
0.371873
0.373283
0.371836
Looks good! So
surely this has to work...
Nothing! Just the same result as you got.
Is there some problem with jack_cpu_load writing to a pipe? Let's try the simplest thing I can think of
Deadly silence again. Somehow there does seem to be something wrong with jack_cpu_load writing to a pipe.
I don't know how that can be. I suppose the next thing to do would be to try
named pipes, which I don't remember how to do.