LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 05:19 PM   #1
zimbodel
LQ Newbie
 
Registered: Jan 2019
Posts: 8

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, 06: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: 3,357

Rep: Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452
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, 02:43 PM   #3
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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.
Old 03-11-2019, 10:56 AM   #4
zimbodel
LQ Newbie
 
Registered: Jan 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
I solved it using Nixcraft.
It ended up being something buggy in the MX packaging inherited from Debian.

Here is the post that solved it.
https://www.nixcraft.com/t/solved-cr...ian-linux/1858
 
  


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 07:13 PM
cron.hourly cron.weekly cron.monthly and 0anacron. Are they necessary? glore2002 Debian 2 09-30-2009 08:57 PM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 08: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 01: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 01:50 PM

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

All times are GMT -5. The time now is 09:09 AM.

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
Open Source Consulting | Domain Registration