P
Pablo Q.
[Note: parts of this message were removed to make it a legal post.]
Hi,
I have a process that must run on Sunday but by some unknown reason it
doesn't work, here is the code that I'm using:
require 'rubygems'
require 'rufus/scheduler'
require "weekly"
class WeeklyScheduler
def initialize()
@cron_run_weekly = '22 7 * * 7'
end
def start(count)
scheduler =Rufus::Scheduler.new
scheduler.start
#-----------------------------------------------------------------------
job = scheduler.schedule @cron_run_weekly do
day_r = Time.now
puts "Weekly process start for day #{day_r}"
puts "Running weekly!"
process = Weekly.new(date)
process.run
end
scheduler.join
end
end
I tried with this cron's strings too:
@cron_run_weekly = '22 7 * * Sun'
@cron_run_weekly = '22 7 * * 0'
but It didn't run. I'm on an Window Server machine.
Thanks
Hi,
I have a process that must run on Sunday but by some unknown reason it
doesn't work, here is the code that I'm using:
require 'rubygems'
require 'rufus/scheduler'
require "weekly"
class WeeklyScheduler
def initialize()
@cron_run_weekly = '22 7 * * 7'
end
def start(count)
scheduler =Rufus::Scheduler.new
scheduler.start
#-----------------------------------------------------------------------
job = scheduler.schedule @cron_run_weekly do
day_r = Time.now
puts "Weekly process start for day #{day_r}"
puts "Running weekly!"
process = Weekly.new(date)
process.run
end
scheduler.join
end
end
I tried with this cron's strings too:
@cron_run_weekly = '22 7 * * Sun'
@cron_run_weekly = '22 7 * * 0'
but It didn't run. I'm on an Window Server machine.
Thanks