You are not logged in.

#1 2013-11-27 23:47:42

Lockheed
Member
Registered: 2010-03-16
Posts: 1,550

[solved] cron refuses to run a command

For some reason, cron just won't run a one particular command.

Here's my crontab:

*/1 * * * *   /usr/bin/modprobed_db store &> /dev/null
*/1 * * * *   touch ~/.config/modopodo &> /dev/null

The second command is there just to check cron is working. And yes, it works. Each minute it creates that file.

But the first one just won't work.
I moved it underneath the second command - no difference.
I changed cronie to dcron - no difference.

But when I try this command in terminal - it works perfectly fine.

Why?

Last edited by Lockheed (2013-11-28 07:32:18)

Offline

#2 2013-11-27 23:48:46

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] cron refuses to run a command

Does that program exist?

Offline

#3 2013-11-27 23:50:25

Lockheed
Member
Registered: 2010-03-16
Posts: 1,550

Re: [solved] cron refuses to run a command

Yes, as I said if I run it in terminal, it does the job.

Offline

#4 2013-11-27 23:55:09

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [solved] cron refuses to run a command

What are the permissions on that program?  Who owns it?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2013-11-27 23:57:47

Lockheed
Member
Registered: 2010-03-16
Posts: 1,550

Re: [solved] cron refuses to run a command

root:root, and executable by everyone

It runs fine without sudo

If I put it in root's crontab, it still won't work

Offline

#6 2013-11-28 00:27:56

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved] cron refuses to run a command

Are you aware that the modprobed_db package no longer exists in the AUR?  graysky changed the name slightly.

Offline

#7 2013-11-28 07:32:00

Lockheed
Member
Registered: 2010-03-16
Posts: 1,550

Re: [solved] cron refuses to run a command

@WonderWoofy, that is a good point. I installed the new version and now it seems to work with cron.

However, I am still puzzled why the last one didn't work in cron, while it worked in terminal.

Offline

Board footer

Powered by FluxBB