This is basically an all purpose script that will change any input file into a format that an RSS reader can see. The best results are seen when the input file has each status on individual an line. You could technically combine both the router and computer scripts into one (both are shell scripts), located only on the router, but you can not host a non-html file in the /tmp/www and access it's contents without telnet/ssh. Without additional resources (samba, mmc, ect.) there aren't many other places to access the file. You could also probably setup a script to login via telnet/ssh to gather the settings as needed only utilizing the computer, which maybe an interesting alternative which doesn't rewrite to the flash as much (which technically burns out over time).
I also deeply appreciate it. But what i really need is just to allow " \' " character, may be it can be done easyer? Or is it problem just with drupal?
If you are going to use some language different than english who has cutes, remember to use &icute, ´, etc...
This script will parse out various peices of status information from the files located on the router. If you need more or less of the information or different formatting, you can edit this down to please you. The other script that will read this is independent so it can take more or less lines of information as needed without a hicup. The only syntax requirement for proper reading in the other script is that each status must be fully contained on its own line (but even that isn't really manditory). The output is stored in the file: mkdir -p /tmp/www while [ 1 ]; do sed -n 's%.* src=\(192.168.[0-9.]*\).*%\1%p' /proc/net/ip_conntrack | sort | uniq -c | awk '{t++; print "Connection",t":",$2,"has",$1,"connections open.";}' | tee /tmp/www/stat.html awk '/MemTotal:/ {mt = $2} /MemFree:/ {mf = $2} /Buffers:/ {mb = $2} /^Cached:/ {mc = $2} END { printf( "Free: %2d%%\n",(mf/mt)*100); printf( "Used: %2d%%\n",((mt-mf)/mt)*100); printf( "Buffers: %2d%%\n",(mb/(mt-mf))*100); printf( "Cached: %2d%%\n",(mc/(mt-mf))*100); }' /proc/meminfo | tee -a /tmp/www/stat.html awk '{ printf( "Load: %3d%%\n",$1*100); }' /proc/loadavg | tee -a /tmp/www/stat.html awk '{ printf( "Uptime: %2.2f Hours\n", $2/3600); }' /proc/uptime | tee -a /tmp/www/stat.html sleep 30; done;
Oh...Don't worry, you can manually create RSS feed using feedity.com and then submit it wherever you want.
I was also coming here for that answer and review other users posting and some useful information in them, thanks to all to put info here.
Interested in the answers and the replies as I am also working with RSS feeds I am looking for help to parse out "OPEN Question;" with yahoo answers and a vBulletin RSS feed? vBulletin RSS - parse out "Open Question: " in the feed? can CDATA be used to do this and how?