Koozali.org: home of the SME Server

Updating crontab schedule

Offline AKn

  • *
  • 19
  • +0/-0
Updating crontab schedule
« on: March 18, 2010, 07:15:57 AM »
Good day,

On my local sme server machine, I've installed Crontab Manager. Using the interface in server-manager, I've been able to add items to the schedule. Now, I'm trying to make some updates on a remote sme server using ssh access and don't have access to Crontab Manager. I found the following command suggestions in a 2007 posting.

Code: [Select]
pico -w  /etc/e-smith/templates-custom/etc/crontab/your_file_name

add your cron entries

/sbin/e-smith/expand-template etc/crontab

more /etc/crontab - just to verify your new entry is there, then

/etc/e-smith/events/actions/restart-crond

However, it does not work because 'restart-crond' is no longer available. I've tried "service crond restart" which stopped and started crond. However the new scheduled item does not seem to run (no evidence that the job ran). Can someone give some updated instructions?

ak

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Updating crontab schedule
« Reply #1 on: March 18, 2010, 09:41:36 AM »
AKn

Using a ssh remote connection to your server type
elinks
that will start server manager (text version), then navigate to your required server manager panel. The mouse should work OK.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline AKn

  • *
  • 19
  • +0/-0
Re: Updating crontab schedule
« Reply #2 on: March 18, 2010, 10:20:52 AM »
Good day,

Thanks, I learned something new. However, this server does not have the Crontab Manager installed. And I'd like to know how to do this with a command. So I'm still stuck and would appreciate some help.

ak

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Updating crontab schedule
« Reply #3 on: March 18, 2010, 01:32:41 PM »
Place raw scripts into any of:
 /etc/cron.hourly
 /etc/cron.daily
 /etc/cron.weekly
 /etc/cron.monthly

Or, create your own cron-style text file with arbitrary crontab commands and place it in /etc/cron.d

Or, run 'crontab -e' to edit the crontab for "root" (or for some other user).