Perhaps this is more of a general question on scripting and terminal use than of the use of the `at' command. Regardless, I am exploring the use of the at command to get a handle on its behavior and how I can control it before I use it for a serious script.
I wrote a trivial script named at-test.sh, saved it to $HOME and made it executable:
#!/bin/sh echo $(date +%H:%M:%s) > /dev/pts/9 exit 0
then ran it via
at -f './at-test.sh' now + 1 minutes
It runs as expected, but I must Ctrl+C to get the shell prompt back. I later learned that the Enter key would work also to get the prompt back. Is there anyway to get the prompt back via a command in the script?