I just want a bash script to run 5 minutes after it's called. What am I doing wrong?
I have the command:
/path/to/my/script | at now + 5 min
And yet the script runs right away every time.
You are executing the script immediately and sending its output into at
. You need to send the name of the script itself into at
:
echo /path/to/my/script | at now + 5 min