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: Dale Mellor
Subject: Re: Help on mcron for non-root user
Date: Sun, 15 Mar 2020 22:59:05 +0000
User-agent: Evolution 3.30.5-1.1

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

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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