Adapt the api.sh script to be run in a cron job within tuxfamily shell.