shell2
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
shell2 [2019/12/17 16:40] – search is hanging on shell page. This is a test page. dblume | shell2 [2020/12/09 08:30] – [Application Memory Usage] dblume | ||
---|---|---|---|
Line 274: | Line 274: | ||
fi | fi | ||
} | } | ||
- | </ | ||
- | |||
- | Note the use of $@ vs " | ||
- | |||
- | <code bash> | ||
- | telnet_log() { | ||
- | curtime=$(date -Iseconds | tr : .) | ||
- | args=$(echo " | ||
- | telnet $@ | tee $HOME/ | ||
- | } | ||
- | |||
- | last_telnet_log() { | ||
- | ls -d1t $HOME/ | ||
- | } | ||
- | </ | ||
- | |||
- | Of course if you do that, you'll want to occasionally (via cronjob?) delete old archives. | ||
- | |||
- | < | ||
- | find $HOME/ | ||
</ | </ | ||
Line 390: | Line 370: | ||
Alternatively, | Alternatively, | ||
<code bash> | <code bash> | ||
- | while true; do sync; cat /proc/$(pidof yourprocess)/ | + | PID=$(pidof yourprocess); |
</ | </ | ||
====== Measuring Available Memory ====== | ====== Measuring Available Memory ====== | ||
Line 554: | Line 534: | ||
David' | David' | ||
</ | </ | ||
+ | |||
+ | ====== 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: | ||
+ | http 192.168.1.128: | ||
+ | |||
====== Protips for find ====== | ====== Protips for find ====== |
shell2.txt · Last modified: 2023/05/17 09:47 by dblume