Cool - will grab it and give it a whirl!<br>Cheers<br>Julian<br><br><div><span class="gmail_quote">On 29/12/2007, <b class="gmail_sendername">David Hautbois</b> &lt;<a href="mailto:david.hautbois@free.fr">david.hautbois@free.fr
</a>&gt; wrote:</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>Try Kerez :<br><a href="http://david.hautbois.free.fr/joomla/index.php?option=com_content&amp;task=view&amp;id=44&amp;Itemid=43">
http://david.hautbois.free.fr/joomla/index.php?option=com_content&amp;task=view&amp;id=44&amp;Itemid=43</a><br><br>David.<br><br><br>Julian Toler wrote:<br>&gt; I am looking for a way to quickly and easily run some simple scripts -
<br>&gt; the most immediate example is the one line scripts for switching USB<br>&gt; host mode on and off:<br>&gt; echo host &gt; /sys/devices/platform/musb_hdrc/mode<br>&gt; and<br>&gt; echo otg &gt; /sys/devices/platform/musb_hdrc/mode
<br>&gt;<br>&gt; I really don&#39;t want to have to fire up the terminal and type these out<br>&gt; (and yes I know tab auto complete can speed this up, but this is still<br>&gt; not as easy as a menu item!)<br>&gt;<br>&gt; I am very much a noob so the following idea may be naive and may be
<br>&gt; shot down immediately:<br>&gt; I am assuming I could create a menu item that would run a shell<br>&gt; script? Not sure whether these desktop files need to point at<br>&gt; executables or whether executable scripts are also OK?
<br>&gt;<br>&gt; [Desktop Entry]<br>&gt; Version=1.0<br>&gt; Encoding=UTF-8 ?? needed?<br>&gt; Name=MyShinyScript<br>&gt; Exec=/usr/bin/myscript.sh (or .py or whatever)<br>&gt; Icon=MyNiceIcon (I can create the correct transparent png)
<br>&gt; Type=Application ?? needed?<br>&gt; StartupWMClass= ?? needed?<br>&gt; X-Osso-Type=application/x-executable ?? needed?<br>&gt; X-Osso-Service=com.nokia. ?? needed?<br>&gt;<br>&gt; I am guessing MyShinyScript would look something like:
<br>&gt;<br>&gt; #!/bin/sh<br>&gt; echo host &gt; /sys/devices/platform/musb_hdrc/mode<br>&gt; I know I must make the scripts executable with chmod +x<br>&gt;<br>&gt; Of course all this is probably going to be superceded by some kind
<br>&gt; person who has set up Scratchbox and got their teeth into real<br>&gt; programming - a proper Maemo application which installs a simple host<br>&gt; mode on-off utility would seem to be a logical development, but in the
<br>&gt; meanwhile, a scripted hack would be good for me!<br>&gt;<br>&gt; Please could somebody tell me if my mad idea will work or whether I<br>&gt; should go home and start proper application development?<br>&gt;<br>&gt; Cheers
<br>&gt;<br>&gt; J<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; maemo-users mailing list<br>&gt; <a href="mailto:maemo-users@maemo.org">
maemo-users@maemo.org</a><br>&gt; <a href="https://lists.maemo.org/mailman/listinfo/maemo-users">https://lists.maemo.org/mailman/listinfo/maemo-users</a><br>&gt;<br><br><br>--<br>Web site : <a href="http://david.hautbois.free.fr">
http://david.hautbois.free.fr</a><br>Tablet users map : <a href="http://david.hautbois.free.fr/maps/index.php">http://david.hautbois.free.fr/maps/index.php</a><br><br><br></blockquote></div><br>