29 Mar
2007
29 Mar
'07
10:21 a.m.
It might be useful to use the script that I mentioned earlier with the
Eric, how do I capture the output from that script into a log file? I gave it the name : ericlogger and tried: ./ericlogger >> logfile but that don't work. I don't know perl at all so my hacking is not getting me anywhere.
Here it is again:
perl -e 'my $pid = shift; while(1) { open(my $fh, "<", "/proc/$pid/statm") or die; my $data = <$fh>; chomp($data); print join(" ", time,map({$_ * 4} split(/ /, $data))), "\n"; sleep(1); }' $(pidof inkscape)
/d