[TriLUG] Cron doesn't seem to run

Bill Trautman via TriLUG trilug at trilug.org
Sun Jan 9 13:01:30 EST 2022


It slept 10 seconds.  Look at the time stamp.

On Sun, Jan 9, 2022 at 12:59 PM Matthew Glassman via TriLUG <
trilug at trilug.org> wrote:

> Hello TriLug,
>
> I was just testing out cron/crontab on my Ubuntu box and I'm pretty sure I
> know how to use it for basic (simple) stuff.  However, technology seems to
> be have other ideas.
>
> I entered crontab -e and put in the following just to have the shell sleep
> for 10 minutes to see that it worked.
>
> 45 12 09 01 * sleep 10
>
> If I check the status, I see the following output yet nothing actually
> happened in the terminal.  What am I missing?  Do I need a full path to
> execute command?  Works fine if I just put sleep 10 at the prompt.
>
> Jan 09 12:45:01 mglassman CRON[4907]: pam_unix(cron:session): session
> opened for user mglassman by (uid=0)
> Jan 09 12:45:01 mglassman CRON[4908]: (mglassman) CMD (sleep 10)
> Jan 09 12:45:11 mglassman CRON[4907]: pam_unix(cron:session): session
> closed for user mglassman
> --
> This message was sent to: Bill Trautman <lhasadad at gmail.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that
> address.
> TriLUG mailing list : https://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web  :
> https://www.trilug.org/mailman/options/trilug/lhasadad%40gmail.com
> Welcome to TriLUG: https://trilug.org/welcome


More information about the TriLUG mailing list