When I run echo hello | at now + 7 minutesI get the following output - job 2 at 2016-12-11 05:06However when I use bash txt | at now + 7 minutesIt starts executing immediately. Can someone please explain this behaviour?
help understanding the behaviour of at + x minutes
at
The bash command is invoking the script now and doesn't have anything to pipe to the at command. cat txt | at now + 7 minuteswill pass the lines of the bash script to at 