I'm on Red Hat 7.9. AT version is 3.1.13.
I schedule an AT job
Code:
$ at <HH:MM>
at> echo "UserA at job works" > /tmp/UserA.out
at> <EOT>
at -l shows the job scheduled
Code:
$ at -l
7 <Date/Time of execution> a UserA
When the execution time comes, the status changes to =
Code:
$ at -l
7 <Date/Time of execution> = UserA
This command should take a fraction of a second to execute. Just for fun, let's wait 5 minutes.
Code:
sleep 300
$ at -l
7 <Date/Time of execution> = UserA
$ ls -l /tmp/UserA.out
ls: cannot access /tmp/UserA.out: No such file or directory
/var/spool/at shows the generated file:
Code:
# ls -l /var/spool/at
-rwx------ UserA UserGroup 5536 <creation date> =00007#####
drwx------ root root 138 <Execution Date> spool
# ls -l /var/spool/at/spool
-rwx------ UserA UserGroup 52 <Execution Date> a00007#####
I can execute the file /var/spool/at/=00007##### and it works correctly with a return code of 0.
The spool file /var/spool/at/spool/a00007##### just contains:
Code:
Subject: Output from your job 7
To: UserA
<blank line>
Has anyone seen this? Solution or Ideas?
TIA