[Win32utils-devel] [ win32utils-Bugs-26603 ] TaskScheduler creates .job file on 2k3 but does not register job with the scheduler

noreply at rubyforge.org noreply at rubyforge.org
Mon Jul 13 17:19:59 EDT 2009


Bugs item #26603, was opened at 2009-07-13 14:19
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=411&aid=26603&group_id=85

Category: win32-taskscheduler
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Erik Hollensbe (erikh)
Assigned to: Nobody (None)
Summary: TaskScheduler creates .job file on 2k3 but does not register job with the scheduler

Initial Comment:
Using this code:

require 'rubygems'
require 'win32/taskscheduler'

t = Win32::TaskScheduler.new("task", {
   "start_month"  => 4,
   "start_day"    => 11,
   "start_hour"   => 7,
   "start_minute"	 => 14,
   "trigger_type"	 => Win32::TaskScheduler::DAILY,
   "type"         => { "days_interval" => 2 }
})

t.application_name = "ruby test.rb"
t.save

Which is taken almost verbatim out of:

http://jp.rubyist.net/magazine/?0005-RLR-en

It saves C:\Windows\Tasks\task.job but upon viewing the scheduled tasks list, it does not appear.

I'm not really a windows maven, but here's what I know about the environment:

Windows 2003 Server R2
Ruby mingw32 build of 1.8.6 pl 114 (2008-03-03)

gem list --local reports these gems in use:

win32-api 1.4.3
windows-api 0.3.0
windows-pr 1.0.5
win32-taskscheduler 0.2.0

HTH, Let me know if you require any more information.

Thanks as always,

-Erik

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=411&aid=26603&group_id=85


More information about the win32utils-devel mailing list