Hi All,
I've been trying to schedule a job using the at command on Solaris 5.10 but i've been running into some issue. ( Not allowed to use cron :wall: )
I have a script that reads a logs file, does some iteration and cat's the output in an email .
## the o/p of /home/myscript.sh is :
Hello world.
i need to run this script every day at 9:00 AM and i read up on at and saw some examples on the internet and came up with the below :
cat /home/myscript.sh
...
...
...
echo /home/myscript.sh | at now tomorrow
basically, i embedded the at job in the script, so when i run the script manually it schedules another job for tomorrow and the loop continues.
I've also checked the atq and i can see the job scheduled for tomorrow.
the problem is when i checked this morning , i see no email and i checked the log which the script outputs to and it never ran .
can some one point out where i went wrong. (FYI i also tried the my.daily and recursive scheduling but at doesnt like
at -f /home/myscript.sh now tomorrow < my.daily
error: at bad time specification