unclear how to setup specific Cron

12 posts / 0 new
Last post
#1 Tue, 02/11/2014 - 05:04
dotcom22

unclear how to setup specific Cron

hello

I need a Cron which must fire every day at 1:30 except Saturday and Sunday.

So at the section "When to execute" I choosen "Times and dates selected below".

Then for:

  • minute I choosen "Selected" and "30"
  • hours I choosen "Selected" and "1"
  • hours I choosen "All"
  • months I choosen "All"
  • weekdays I choosen "Selected" and all days except Saturday and Sunday

However it seem Cron still fire Saturday and Sunday.

I made something wrong ??

thank

Tue, 02/11/2014 - 07:43
Locutus

Can you post a screenshot and the resulting crontab entry please? Also, you wrote that you chose "Selected and 1" and also "All" for "hours". You might want to double-check that.

Tue, 02/11/2014 - 08:46
dotcom22

Thank for reply.

Take a look to screenshot...

Tue, 02/11/2014 - 09:08
andreychek

Howdy,

Hmm, can you show us what the resulting line from the user's crontab looks like?

You can see that by running the command "crontab -l" as the user while on the command line.

-Eric

Tue, 02/11/2014 - 10:12 (Reply to #4)
dotcom22

For what I know my host do not allow me to run command line. I use Virtualmin as admin of 20 domain...

Tue, 02/11/2014 - 10:21
Locutus

The crontab command should be executable also as a non-privileged user, since to be able to create cron entries as non-root, also Webmin needs to have access to it...

Tue, 02/11/2014 - 11:07
dotcom22

Mmm so I must ask my host because I don't know how give the requested info by Eric. I will update this post soon...

thank

Tue, 02/11/2014 - 17:16
lp86

Go to Others -> Command Shell under the Webmin section. Type "crontab -l" in the box, and click execute command, this should give you the information Eric requires.

Tue, 02/11/2014 - 17:36 (Reply to #8)
dotcom22

In the section "Others" the only sub-categories I have is:

  • File Manager
  • Protected Web Directories
Tue, 02/11/2014 - 17:43
lp86

Sounds like you are not logged in as root. Can you login as root?

Tue, 02/11/2014 - 17:51
dotcom22

No as I said more above, I have only a simple account. I contacted my host and I wait a reply of him. In any case many thank to trying to help :-)

Tue, 02/11/2014 - 18:11
lp86

Sorry I didn't see that, I created the same cron job and what I saw looked ok to me.

30 1 * * 1-5 echo test

When your host checks they will need to run that command with an additional parameter.

crontab -l -u USERNAME

Topic locked