02/06/2010, 21:10:53
bonsoir,
j'ai trouvé ca par hasard, ici : http://wiki.linuxmce.org/index.php/EIB.
Ca peut peut etre en interesser ici.
I found the solution! The question was the correct format - because
LMCE Implementation uses integer values. Here is a short script which
you can add to the crontab. Just change the groupadress.
#!/usr/bin/perl
$ENV{'PATH'}="/usr/bin";
($second, $minute, $hour, $dayOfMonth, $month, $yearOffset,
$dayOfWeek) = localtime(time);
$dayOfWeek = 7 if ($dayOfWeek==0);
$time2 = sprintf '%s\n', ($second << 16) | ( $minute << 8) | ($hour) |
($dayOfWeek << 5);
@args = ("/usr/pluto/bin/MessageSend localhost -r 0 40 1 273 108
\"3/0/50\" 109 \"$time2\" 110 \"3\"");
system(@args);
bien a vous.
Arnaud
j'ai trouvé ca par hasard, ici : http://wiki.linuxmce.org/index.php/EIB.
Ca peut peut etre en interesser ici.
I found the solution! The question was the correct format - because
LMCE Implementation uses integer values. Here is a short script which
you can add to the crontab. Just change the groupadress.
#!/usr/bin/perl
$ENV{'PATH'}="/usr/bin";
($second, $minute, $hour, $dayOfMonth, $month, $yearOffset,
$dayOfWeek) = localtime(time);
$dayOfWeek = 7 if ($dayOfWeek==0);
$time2 = sprintf '%s\n', ($second << 16) | ( $minute << 8) | ($hour) |
($dayOfWeek << 5);
@args = ("/usr/pluto/bin/MessageSend localhost -r 0 40 1 273 108
\"3/0/50\" 109 \"$time2\" 110 \"3\"");
system(@args);
bien a vous.
Arnaud