bug-mcron
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help on mcron for non-root user


From: Junwei Huang
Subject: Re: Help on mcron for non-root user
Date: Sat, 28 Mar 2020 11:53:08 -0400

Thanks Dale for the help. I just found the reply in my spam folder. I think I forgot to run mcron -d. So there was no daemon running in the background, even though mcron -s2 still shows the scheduled work. 

On Sun, Mar 15, 2020 at 6:59 PM Dale Mellor <address@hidden> wrote:
On Sat, 2020-03-14 at 18:56 -0400, Junwei Huang wrote:
> Hello,
> Not sure if this is the right email list for general help. If not,
> please direct me to the the right place. Appreciate that! Below is my
> question:
>
> I can't use /usr/bin/crontab as a regular user (non-root) and thus
> decided to install mcron on my local folder from source code. I used
> guile v2.0.14 and the machine info is
> Linux  3.10.0-957.5.1.el7.x86_64 #1 SMP Wed Dec 19 10:46:58 EST 2018
> x86_64 x86_64 x86_64 GNU/Linux
> Compiler: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
>
> To test it, I created file test.guile under ~/.configure/cron with
> content:
> (job '(next-minute) "/home/auser/testcron.sh")
>
> then typed:
> bash$mcron &
> bash$mcron --schedule=2
> Sat Mar 14 18:25:00 2020 -0400
> /home/auser/testcron.sh
> Sat Mar 14 18:26:00 2020 -0400
> /home/auser/testcron.sh
> bash$cat /home/auser/testcron.sh
> echo "hello world">/home/auser/hello.tmp

   For a script to be executable I think you need the #!/bin/bash line
at the top.

   Let us know if you still can't get it to work.

/Dale

reply via email to

[Prev in Thread] Current Thread [Next in Thread]