User Tools

Site Tools


shell2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
shell2 [2019/12/22 09:40] – move telnet tip to telnet wiki page dblumeshell2 [2021/05/21 00:04] – external edit 127.0.0.1
Line 370: Line 370:
 Alternatively, to see the RSS use of that process alone: Alternatively, to see the RSS use of that process alone:
 <code bash> <code bash>
-while true; do sync; cat /proc/$(pidof yourprocess)/status | grep VmRSS; sleep 1; done+PID=$(pidof yourprocess); while true; do sync; grep VmRSS /proc/$PID/status; sleep 1; done
 </code> </code>
 ====== Measuring Available Memory ====== ====== Measuring Available Memory ======
Line 534: Line 534:
 David's banana = 192.168.144.40 David's banana = 192.168.144.40
 </code> </code>
 +
 +====== XML XPath Tips ======
 +
 +Here's how to use xmllint to take an XPath path to extract info from the Roku ECP Apps list.
 +
 +  http 192.168.1.128:8060/query/apps | xmllint --xpath '//app[text()="dxb"]/@id' - | cut -d\" -f 2
 +  http 192.168.1.128:8060/query/apps | xmllint --xpath '//app[contains(text(), "Netflix")]/@id' - | cut -d\" -f 2
 +
  
 ====== Protips for find ====== ====== Protips for find ======
shell2.txt · Last modified: 2023/05/17 09:47 by dblume