Possible RubyQuiz idea

H

Hal Fulton

This might be too easy, it's JEG2's call.

Read in an ordinary crontab file and print out a list of
jobs that will run in the next N minutes.

Just a thought.


Cheers,
Hal
 
A

Austin Ziegler

T24gNC8zLzA2LCBIYWwgRnVsdG9uIDxoYWw5MDAwQGh5cGVybWV0cmljcy5jb20+IHdyb3RlOgo+
IFRoaXMgbWlnaHQgYmUgdG9vIGVhc3ksIGl0J3MgSkVHMidzIGNhbGwuCj4KPiBSZWFkIGluIGFu
IG9yZGluYXJ5IGNyb250YWIgZmlsZSBhbmQgcHJpbnQgb3V0IGEgbGlzdCBvZgo+IGpvYnMgdGhh
dCB3aWxsIHJ1biBpbiB0aGUgbmV4dCBOIG1pbnV0ZXMuCgpGYWlybHkgZWFzeSwgYnV0IHdpdGgg
c29tZSBpbnRlcmVzdGluZyBlZGdlIGNhc2VzICh0ICsgTiBjcm9zc2luZyBhbgpob3VyLCBkYXks
IG1vbnRoLCBvciB5ZWFyIGJvdW5kYXJ5OyBkZWFsaW5nIHdpdGggbGVhcCB5ZWFyczsgZGVhbGlu
Zwp3aXRoIHN1bW1lciB0aW1lL3dpbnRlciB0aW1lIHN3aXRjaGVzKS4KCi1hdXN0aW4KLS0KQXVz
dGluIFppZWdsZXIgKiBoYWxvc3RhdHVlQGdtYWlsLmNvbQogICAgICAgICAgICAgICAqIEFsdGVy
bmF0ZTogYXVzdGluQGhhbG9zdGF0dWUuY2EK
 
A

ara.t.howard

Fairly easy, but with some interesting edge cases (t + N crossing an
hour, day, month, or year boundary; dealing with leap years; dealing
with summer time/winter time switches).

not to mention cron supports variables, ranges, wildcards, and lists!


-a
 
R

Robert Dober

------=_Part_13151_3969584.1144150202591
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

not to mention cron supports variables, ranges, wildcards, and lists!


-a
Rewriting cron in ruby

--
Deux choses sont infinies : l'univers et la b=EAtise humaine ; en ce qui
concerne l'univers, je n'en ai pas acquis la certitude absolue.

- Albert Einstein

------=_Part_13151_3969584.1144150202591--
 
A

azrael

Call me crazy, but that one sounds like fun to me. :D

You should aim high, and think "bigger than cron".

Create one convention-over-configuration Ruby program with Needles that
can replace crond, atd, init, supervise, inetd and anything else that
starts a program ever; make it supports port-proxying, lazy loading of services, signal handling, session-handling and automatic dependency discovery. *Then* you're talking.

Cron? Tchoh.

Martin
 
Z

Zed Shaw

You should aim high, and think "bigger than cron".

Create one convention-over-configuration Ruby program with Needles that
can replace crond, atd, init, supervise, inetd and anything else that
starts a program ever; make it supports port-proxying, lazy loading of
services, signal handling, session-handling and automatic dependency
discovery. *Then* you're talking.

Cron? Tchoh.

Then watch as people gleefully hack into the newly started
RubyCronolithOfTheGods.

Could be fun though.

Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/
 
P

pat eyler

You should aim high, and think "bigger than cron".

Create one convention-over-configuration Ruby program with Needles that
can replace crond, atd, init, supervise, inetd and anything else that
starts a program ever; make it supports port-proxying, lazy loading of se= rvices,
signal handling, session-handling and automatic dependency discovery.
*Then* you're talking.

Spend some time looking at CFEngine and CFRuby/libcf if you choose to
go down this path.
 
R

Robert Dober

------=_Part_15835_6827943.1144162672743
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

You should aim high, and think "bigger than cron".

Create one convention-over-configuration Ruby program with Needles that
can replace crond, atd, init, supervise, inetd and anything else that
starts a program ever; make it supports port-proxying, lazy loading of
services, signal handling, session-handling and automatic dependency
discovery. *Then* you're talking.

Cron? Tchoh.

Martin
Do not touch!!! This belongs to Hurd ;)

--
Deux choses sont infinies : l'univers et la b=EAtise humaine ; en ce qui
concerne l'univers, je n'en ai pas acquis la certitude absolue.

- Albert Einstein

------=_Part_15835_6827943.1144162672743--
 
H

Hal Fulton

not to mention cron supports variables, ranges, wildcards, and lists!

Yes, it's ranges, wildcards, and lists that make it interesting
to me, not the edge cases. As for variables, I'm not sure what
you mean.

One reason I mention this idea is that I have had a practical need
for it on several occasions and have never got around to writing
such a tool.


Hal
 
L

Logan Capaldo

--Apple-Mail-24-555971664
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed


You should aim high, and think "bigger than cron".

Create one convention-over-configuration Ruby program with Needles
that
can replace crond, atd, init, supervise, inetd and anything else that
starts a program ever; make it supports port-proxying, lazy loading
of services, signal handling, session-handling and automatic
dependency discovery. *Then* you're talking.

Cron? Tchoh.

Martin

too bad launchd isn't written in ruby
--Apple-Mail-24-555971664--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top