#!/bin/bash tput cols > /tmp/col.log python3 /opt/scripts/todo/todo_format.py result=$? rm -rf /tmp/col.log exit $result # while :; do # echo $COLUMNS > /tmp/col.log # python3 /opt/scripts/todo/todo_format.py # sleep 1 # done