Cron:1-59 * * * * orangepi /home/orangepi/message.sh > /dev/pts/4;message.sh:#!/bin/bashecho -e \033[37;1;41m WARNING \033[0mAfter executing I need press enter that return to console(root@orangepi:/home/orangepi#).
how to disable waiting press enter after executing bash script over cron
linux;bash;shell;cron
You have opened /dev/pts/4 for writing, and wrote the output of echo into it, nothing more than that. There is no execution/interpretation of the echo command by your shell, so your shell does not display a new prompt.If you want to execute a command from one terminal to another, you can try non-standard tools such as ttyecho:sudo ttyecho -n /dev/pts/4 'echo -e \033[37;1;41m WARNING \033[0m'