It possible add two variable on one value
example
TOTAL ${totaldown ppp0} ${totalup ppp0}
display the separate ppp0 network traffic on upload and download,
if I want display only output (total) of upload and download)?
thank in advance!
It possible add two variable on one value
example
TOTAL ${totaldown ppp0} ${totalup ppp0}
display the separate ppp0 network traffic on upload and download,
if I want display only output (total) of upload and download)?
thank in advance!
Good solution, but I prefer whitout vnstat.
Same result as to make new script executable
#!/bin/sh
rx=$(ifconfig ppp0 | grep bytes: | sed 's/.*RX bytes://' | sed 's/ .*//')
tx=$(ifconfig ppp0 | grep bytes: | sed 's/.*TX bytes://' | sed 's/ .*//')
echo "Total transfer: "$(expr $((rx+tx)) / 1024) "Kbytes"
saved as “total_transfer” to /usr/bin and executed by conky.conf
${exec total_transfer }
Fixed: please don't use backticks in your scripts on this forum.
This forum only render the content between the backticks in a monospaced font, hiding backticks itself. Reader will get the uncomplete script.
Not clear for me this question... why hiding backtick?
I have searched this problem on web, and the solution is strange (triple backtick for viewed one)...
https://teamtreehouse.com/community/how-to-include-a-backtick-in-a-post-with-formatted-code-block
backtick test ` (triple)
Hi gibor,
No, it not works with the triple: please see your post changed to using three backticks: http://forum.slitaz.org/topic/conkyconf-question#post-4392
(As for me, I think it's totally pain in ass, but I can't switch off this feature on this forum, so we will have to live with it.) It's possible that triple backticks not functioned inside the blockquote tag.
By the way, this forum used bbPress 1.1 if you're interested. And here's download section in the author's web site. And something I found for post formatting, and which is not applicable to our forum settings anyway (I think due to ancient version).
You must log in to post.