[TriLUG] Cron doesn't seem to run

Bill Trautman via TriLUG trilug at trilug.org
Sun Jan 9 16:05:05 EST 2022


I think what you might not be understanding is that the cron process spins
up a shell separate from the shell you are using interactively.   so they
are two separate processes each with the ability to respond to the sleep
command on their own.

On Sun, Jan 9, 2022 at 1:03 PM Matthew Glassman <matthewglassman78 at gmail.com>
wrote:

> But how come the shell still allowed me to use it?  Shouldn’t it pause for
> 10 seconds?
> On Jan 9, 2022, 1:01 PM -0500, Bill Trautman <lhasadad at gmail.com>, wrote:
>
> 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