Whoops - hit send too early... the shell script should have looked like this:<br><br> #!/bin/sh<br> mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy RESOURCE enabled<br>
myprogram<br> mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy RESOURCE disabled<br><br>except that with the shell script approach, if the script itself is killed, the resource isn't released.<br>
<br>I believe Paul's point is that fsoraw is a perfectly legitimate and "FSO-like" way of holding a resource while a program is running...<br><br>Warren<br><br><br><div class="gmail_quote">On Thu, Aug 13, 2009 at 10:56 AM, Warren Baird <span dir="ltr"><<a href="mailto:wjbaird@alumni.uwaterloo.ca">wjbaird@alumni.uwaterloo.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Arne,<br><br>From my understanding of things - fsoraw is just a short-cut to hold an FSO resource while a program runs.<br>
<br>I believe that "fsoraw -r RESOURCE myprogram" is approximately like writing a script like:<br>
#!/bin/sh<br> mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy Bluetooth enabled<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Thu, Aug 13, 2009 at 5:34 AM, arne anka <span dir="ltr"><<a href="mailto:openmoko@ginguppin.de" target="_blank">openmoko@ginguppin.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>> I'm afraid yes. To me it looks like you haven't really read the page<br>
<br>
</div>ah, that's the easy way out. you wrote the page, i assume ...<br>
<br>
well, i am still convinced, fso should do something about that instead of<br>
relying on some 3d party app.<br>
<div><div></div><div><br>
_______________________________________________<br>
Openmoko community mailing list<br>
<a href="mailto:community@lists.openmoko.org" target="_blank">community@lists.openmoko.org</a><br>
<a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Warren Baird - Photographer and Digital Artist<br><a href="http://www.synergisticimages.ca" target="_blank">http://www.synergisticimages.ca</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Warren Baird - Photographer and Digital Artist<br><a href="http://www.synergisticimages.ca">http://www.synergisticimages.ca</a><br>