On 12/18/06, <b class="gmail_sendername">Markus Amann</b> &lt;<a href="mailto:mamann@web.de">mamann@web.de</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br><br>IŽd like to wakeup my Mythbackend with the ACPI solution.<br>I followed the ACPI Wakeup at the Myth Wiki, but without success.<br>My wakeup Command is &quot;SetWakeuptimeCommand /usr/bin/mythsettime $time&quot;<br>
The mythsettime script is the following:<br>sudo echo $1 &gt; /var/lib/mythtv/myth.time<br>sudo echo $1 &gt; /proc/acpi/alarm</blockquote><div><br>I don't think sudo echo's work with redirection.&nbsp; I think you have to set your SetWakeuptimeCommand to sudo /usr/bin/mythsettime $time in order for it to work, but I could be wrong.&nbsp; You might also have to put \' or \&quot; around $time (
i.e \'$time\') as at least in my case, the $time variable consists of two words, so $1 will only get the first one.&nbsp; Alternatively, you could use 'echo $@' in mythsettime which will print all of the arguments passed to mythsettime.&nbsp; Also, myth does log shutdown warnings every ten seconds for a minute before a shutdown in /var/log/mythtv/.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">which should write the wakeup time into the acpi alarm .<br>my question is now, how can i test the script without the mythbackend
<br>because the $time variable is not know outside the mythbackend programm.</blockquote><div><br></div></div>something like:<br><br>sudo /usr/bin/mythsettime '2006-12-18 15:05:00' <br><br>would test your script for 3:05 today, however this seems obvious, did you mean something else?
<span style="font-family: monospace;"><br><br></span>-- <br>Dylan<br><br>Type faster.&nbsp;&nbsp;Use Dvorak:<br><a href="http://dvzine.org">http://dvzine.org</a>