Search the web
Sign In
New User? Sign Up
heyu_users · heyu users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How to simulate the CM11a?   Message List  
Reply | Forward Message #3427 of 3751 |
Re: [heyu_users] How to simulate the CM11a?


Instead of running cron every minute to check for events (which seems
rather silly) why not just schedule jobs in cron to happen ... when
they're supposed to occur?

From your description, I can't figure out why you wouldn't just set up a
cron job for each event you want to trigger.

If the CPU powering off is an issue, you may want to look into "anacron."

As for your question about mail, your MSA is more important than your MTA,
unless you're figuring on writing raw SMTP. Before we get all mixed up in
acronyms, most *nix mail systems have "sendmail" as a command line MSA,
whether or not the MTA sendmail is involved, so it's de rigeur to use that
from the command line.

So ultimately, I'm not sure if your question is "how do I send mail from
the command line" in which case you'll want to consult whatever you have
installed that can function as an MSA, or "how do I launch a script when
an event occurs?" which is more a function of heyu.

> I have a CM11a that appears to be flakey...it will transmit x10 commands
> passed to it via Heyu, but uploaded timers do not appear to run. I've
> tried timers uploaded from heyu as well as active home with the same
> result. This is the third time a CM11a has died. I would like to, in
> essense, replicate the timer execution within Heyu, and send the outputs
> to either the CM11a or the firecracker module. There seems to be enough
> 'pieces' of things in Heyu to do this but I am not sure how to put it
> together, so here are some questions:
>
> The thing that seems to be missing is a time sequencer - for every min
> tick, check a list of time events and if the time matches, execute the
> associated action. Is there any piece in Heyu that does this? If not,
> any suggestions on how to implement this? I considered developing a
> crontab but running something with a granularity of one min might chew up
> a lot of cpu cycles. If someone has done this or knows of an example,
> could you show it to me?
>
> I realize the possibility of a power fail effictively killing the CPU, but
> I can make sure that does not happen, and be sure that it is more reliable
> than the CM11a.
>
> Also, I am looking for an example on how to send an email message as an
> action to an event happening. I am using the Courier MTA as my mail
> server.
> Thanks
> John




Thu Jul 9, 2009 8:16 pm

ipsemdolorum
Online Now Online Now
Send Email Send Email

Forward
Message #3427 of 3751 |
Expand Messages Author Sort by Date

I have a CM11a that appears to be flakey...it will transmit x10 commands passed to it via Heyu, but uploaded timers do not appear to run. I've tried timers...
bill williams
uniquelogin2000
Offline Send Email
Jul 9, 2009
7:58 pm

Instead of running cron every minute to check for events (which seems rather silly) why not just schedule jobs in cron to happen ... when they're supposed to...
Michael Stowe
ipsemdolorum
Online Now Send Email
Jul 9, 2009
8:17 pm

Ok, it does make more sense to just schedule the jobs in cron. I was trying to take advantage of the scripting commands in heyu to capture, in a short hand...
bill williams
uniquelogin2000
Offline Send Email
Jul 10, 2009
4:17 am

On Thu, 9 Jul 2009 21:17:04 -0700 (PDT) ... John, One line in crontab can execute a command at a specified time every day, or on specified days of the week or...
Charles Sullivan
itsahoot401
Offline Send Email
Jul 10, 2009
6:15 am

I think Charles has covered everything except "security mode" in macros, which I emulate in this way: Once a day, launch a script (from cron) which schedules...
Michael Stowe
ipsemdolorum
Online Now Send Email
Jul 10, 2009
3:43 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help