echo 'sleep 2m; echo hello from batch' | batch echo 'echo hello from at' | at now + 5 minutesBatch runs your command right away. In this example its sleeping for a period. But it could be any long-running command. Then there is nohup, disown, screen, tmux See their man pages.
Computer Tips - How can I keep a command going after I logoff.
Date: 2014jan12
OS: Linux
Q. How can I keep a command going after I logoff.
A. If this happening a lot you mihgt want to formalize it and make a daemon.
Here are examples using `at` and `batch`: