tcloud automatic downloader
https://github.com/Lunik/tcloud-heroku
Install the following:
- wget (comes pre-installed in Linux on most distros)
For Windows Users:
choco install wget
Download release
Extract it and run install.bat
Download the readily available binary at https://github.com/sathwikmatsa/tcad/releases/download/0.1/tcad and skip the Build
section.
> git clone https://github.com/sathwikmatsa/tcad.git
> cd tcad
> cargo build --release
substitue dummy values in .env
with actuals
After cargo build
:
> mkdir -p ~/.bin/tcad
> cp target/release/tcad ~/.bin/tcad # if you directly downloaded binary, use: cp tcad ~/.bin/tcad
> cp .env ~/.bin/tcad
Add a cron job
> crontab -e
append the following line* :
*/5 * * * * sudo -u <user> DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/<uid>/bus /home/<user>/.bin/tcad/tcad /home/<user>/.bin/tcad/.env >> /home/<user>/.bin/tcad/tcad.log
to run tcad every 5 minutes
.
*Note: replace <user> and <uid> in the above line. (use whoami
to get user, id -u $(whoami)
to get user id)