Leechael / memcache-top

Automatically exported from code.google.com/p/memcache-top
0 stars 0 forks source link

New Feature: run once option #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Adds an option '--once' to cause memcache-top to run once then exit. Makes
it useful in cronjobs and scripts.

Diff:

diff memcache-top.pl memcache-top.pl.orig 
20d19
< #     - Run once and exit --once (good for scripting)
64c63
<     $commands, $cumulative, $once);

---
>     $commands, $cumulative);
139d137
<       'once'          => \$once,
382c380
<   push @out,"\n(ctrl-c to quit.)\n" if !$once;

---
>   push @out,"\n(ctrl-c to quit.)\n";
384c382
<   push @out, "\n" if $once;

---
> 
386,387d383
<   
<   exit(0) if $once;

Original issue reported on code.google.com by jason%bu...@gtempaccount.com on 18 Nov 2009 at 9:33

Attachments:

GoogleCodeExporter commented 9 years ago
Already did it.  :)

See here:
http://code.google.com/p/memcache-top/source/browse/trunk/memcache-top

Original comment by nicholas...@gmail.com on 18 Nov 2009 at 9:36

GoogleCodeExporter commented 9 years ago
LOL. Well, I like '--once' better, but tis all good.

Original comment by jason%bu...@gtempaccount.com on 18 Nov 2009 at 9:41