[Top][All Lists]

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

Help on mcron for non-root user

From: Junwei Huang
Subject: Help on mcron for non-root user
Date: Sat, 14 Mar 2020 18:56:29 -0400

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
Sat Mar 14 18:26:00 2020 -0400
bash$cat /home/auser/testcron.sh
echo "hello world">/home/auser/hello.tmp
bash$ll  /home/auser/testcron.sh 
-rwxr-xr-x 1 auser auser 350 Mar 14 18:16 testcron.sh*

Using (job '(next-minute) "bash /home/auser/testcron.sh") won't get it work either. 

Did I miss any steps or I can't work around it without the administrator account? Thank you.

reply via email to

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