I tried to use at to schedule a job running at a specific time. I have a Mac computer. For example, I tried to test this by for the following at in Terminal:
at now + 1 minute
echo 'Test at'
<EOD>
after more than 1 minute, I did not see the echo out. After I type in the following command:
at -l
I did not see any jobs, but I got message saying I have a mail. I went to my mail by mail command. I did see one message and I typed 1. I saw my job output is in the mail.
My first question is that I am not sure if this the default behaviour for at command or not. Is there any way change this behavour and how to change it direct the result to where if possible.
My understanding is that if my scheduled job has any message and the output message will be send back to my mail. My next related question is that I am not sure where does the scheduled job run? In a background? I could not find it by using fg or bg command.