Skip to content

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

* Memteller
Script that shows the memory usage by the xcowsay 

** Requirement
 Install xcowsay
#+BEGIN_SRC bash 
sudo apt install -y xcowsay 
#+END_SRC

** Usage
Clone the repo:-
#+BEGIN_SRC bash 
git clone git@github.com:veekrum/memteller.git 
#+END_SRC
get inside repo :-
#+BEGIN_SRC bash 
cd memteller 
#+END_SRC
run the script :- 
#+BEGIN_SRC bash 
./run.sh 
#+END_SRC
Finish.
 
** Result
 If your RAM memory-usage is more than 60%. else the message will not appear. You will get noticed in each 30 minutes by the beautiful cow with the memory usage message like this:-
[[https://github.com/veekrum/memteller/blob/master/images/cow.png]]

** Change Interval in Cron
we are using the interval of 5 minutes to show the message. You can change the interval SO.
#+BEGIN_SRC bash 
vim run.sh and change the value of */interval_num * * * *
#+END_SRC

#+BEGIN_SRC bash 
line="*/5 * * * * export DISPLAY=:0 && cd $DIR && ./memteller.sh > /tmp/cronlog.log 2>&1"
#+END_SRC
Now, save and run ``./run.sh`` again

About

RAM Memory usage Shown by xcowsay

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages