LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 01-20-2019, 06:19 PM   #1
zimbodel
LQ Newbie
 
Registered: Jan 2019
Posts: 3

Rep: Reputation: Disabled
Cron not working correctly in MX18


Do the following as root user
create a crontabfile with the following entry

@reboot touch /root/crontest.tst
(remember a newline after entry)

Load the crontabfile with
$] crontab crontabfile

Check if it was loaded with
$] crontab -l

If so reboot.

Upon reboot there will be no file in /root called crontest.tst as there should be.

I now tried it on two MX18 installs on two different computers.
On both of them cron doesnt execute @reboot.
I suggest the MX18 developers look at which runlevel cron executes crontab.
This cron bug is as old as 2011 and keeps reappearing.
 
Old 01-21-2019, 07:18 AM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,798

Rep: Reputation: 1164Reputation: 1164Reputation: 1164Reputation: 1164Reputation: 1164Reputation: 1164Reputation: 1164Reputation: 1164Reputation: 1164
try
Code:
@reboot /bin/touch /root/crontest.tst
using the results of
Code:
whereis touch
to provide the path for the touch executable on your install.
 
Old 01-21-2019, 03:43 PM   #3
ehartman
Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 362

Rep: Reputation: 160Reputation: 160
Quote:
Originally Posted by zimbodel View Post
@reboot touch /root/crontest.tst

I suggest the MX18 developers look at which runlevel cron executes crontab.
This cron bug is as old as 2011 and keeps reappearing.
The implementation of cron MX is using may not support @reboot, it is NOT a standard cron feature, is documented only as an extension on the WWW man page.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MX18 How to change greeter background image zimbodel antiX / MX Linux 3 01-14-2019 08:13 PM
cron.hourly cron.weekly cron.monthly and 0anacron. Are they necessary? glore2002 Debian 2 09-30-2009 09:57 PM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 09:16 AM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U SUSE / openSUSE 11 01-04-2007 02:57 AM
Can any one plz explain why/what for cron.d, cron.daily, cron.weekly etc are there. mavinashbabu Linux - Newbie 4 09-21-2006 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 06:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration