Is it possible to have the at command return somehow the job id it just submitted when used from within a script? (kind of like $? retrieves the last exit code or $$/$! retrieve the PID of the command just executed).
Assuming that the job you want to run is in a file called
So it get it into a variable, you can do: