Logbot is a bash script that helps users to generate logtime, in a work environment using SVN (Apache Subversion), with a bit of pseudo-randomness to fake human activity.
Clone the repository
git clone https://github.com/Metalhearf/logbot
-
Add your custom SVN repositories (must be an existing one) in the config file located here : ./config/logbot.conf
-
Run LogBot once, and if no errors occured, turn off the testing mode by setting :
TESTING=false
-
(Optionnal) Change other values listed in the configuration file to suit your needs.
- Go to your LogBot installation directory
- Run it :
bash logbot.sh
By using Cron, you can make LogBot start at specific and periodic hours.
If you have to generate logs every day of the week from 9am to 10am, you can add this to your crontab. (Reminder : crontab -e
)
Let's say, the svn up
command gives you +30 minutes of logtime, and you only work from Monday to Friday.
0 9 * * 1-5 bash /home/bob/logbot/logbot.sh >> /home/bob/logbot/logs/logbot.log
30 9 * * 1-5 bash /home/bob/logbot/logbot.sh >> /home/bob/logbot/logs/logbot.log
Use crontab.guru to understand or generate cron rules.
-
Linux
- Everything should work just fine.
-
Mac
-
You need to install gshuf for LogBot to run.
brew install coreutils
-
-
Windows
- Not supported.
This software is for educational purposes only. The author is not responsible for its use.