VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: enable CronJobs?  (Read 1243 times)

poseidon

  • Member
  • *
  • Posts: 5
enable CronJobs?
« on: October 23, 2007, 12:05:42 am »

hi there!

i have a Subversion Server running on my VL 5.8 Std and wrote a little script, that should backup my repositories to a usb-pen-drive. The Script works well when i double click it or run it from the console, but i wanted it to run automatically once a day, so i copied it into the /etc/cron.daily folder - but it doesn't work. After 3 days (computer up 24/7) it didn't run once.

do i have to register new cronjobs anywhere or what's my mistake?

mfg poseidon
Logged

Joe1962

  • Administrator
  • Vectorian
  • *****
  • Posts: 2499
    • Joe1962's Website
Re: enable CronJobs?
« Reply #1 on: October 23, 2007, 01:35:04 am »

Did you enable the cron service (can be done in vasm) for the relevant runlevel(s)?
Logged
O'Neill (RE the Asgard): "Usually they ask nicely before they ignore us and do what they damn well please."
http://joe1962.bigbox.info
Running: VL 7 Std 64 + self-cooked XFCE-4.10

bigpaws

  • Vectorian
  • ****
  • Posts: 1869
Re: enable CronJobs?
« Reply #2 on: October 23, 2007, 03:28:08 am »

The other thing to make sure of is that the
full path to the executable.

Bigpaws
Logged

poseidon

  • Member
  • *
  • Posts: 5
Re: enable CronJobs?
« Reply #3 on: October 23, 2007, 09:31:28 am »

Did you enable the cron service (can be done in vasm) for the relevant runlevel(s)?

Well thanks, the cron service wasn't enabled. lets see if it works now. Is there any specific time when the cron daemon runs all scripts in cron.daily ?

The other thing to make sure of is that the
full path to the executable.

I'm not quite sure i understood what you wanted me to do.. Must be my poor english.. :(
Anyway i guess it'll work now with the daemon enabled.

poseidon
Logged

Joe1962

  • Administrator
  • Vectorian
  • *****
  • Posts: 2499
    • Joe1962's Website
Re: enable CronJobs?
« Reply #4 on: October 23, 2007, 12:57:37 pm »

Is there any specific time when the cron daemon runs all scripts in cron.daily ?
That is set up in /etc/crontabs, here's some info found with some quick googling:
http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/custom-guide/cron-task.html
Logged
O'Neill (RE the Asgard): "Usually they ask nicely before they ignore us and do what they damn well please."
http://joe1962.bigbox.info
Running: VL 7 Std 64 + self-cooked XFCE-4.10