I created a task manager for linux with shell script I need to refresh the task manager every 3 seconds I was thinking of using Timer function but got stuck
I have these functions written:
getnum
print_form
printinfo
move_user_cursor
I got these functions in to a main function such as:
init() {
getnum
clear
print_form
printinfo
move_user_cursor
}
and my script ends like this:
init
while true:
do
:
done
How can I make my script get refreshed every 3 seconds?
init(){
getnum
clear
print_form
printinfo
move_user_cursor
}
init
while true;
do
:
done
I expect Timer function, or sleep command