System Usage

I want a web service where I can easily put a url to the output of a system command. I’d like to be able to stick a tag in this post and have the output of:

df | awk '/^\//{ used += $3; total += $2 } \
        END { print (used / 1024 / 1024) "g" \
                        " / " (total / 1024 / 1024) "g" \
                        " = " (used / total) }'

Piped into it whenever the page is loaded (with some caching to handle). It would be a network-level /proc filesystem. The systems could key the values on URIs. Putting it at the network level also lets you run a genetic algorithm on the programs that and being used to configure routing.

Adding artificial intelligence to routing does sound like a pretty good idea, now that I mention it. ☺ I could let remote programs run commands that I don’t care about being public like df, free. I could even expose a version of ps.

The network really would be the computer in that situation as individual routing agents learned from each other the optimum distribution patterns.

888.732g / 1368.7g = 0.649328

So, I have a almost a terabyte of data, btw. It is a mess though. Tip ought to fix that.

  • Share/Bookmark

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment

CommentLuv Enabled