maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Desktop Command Execution Widget scripts (https://talk.maemo.org/showthread.php?t=39177)

rooted 2010-04-15 18:08

Re: Desktop Command Execution Widget scripts
 
Please try the new FM transmitter script which you can found in wiki.

bng 2010-04-15 23:13

Re: Desktop Command Execution Widget scripts
 
So I updated my script, but it does not work (unlike fmboost application)
I check the power level using this command
Code:

cat /sys/class/i2c-adapter/i2c-2/2-0063/power_level

rooted 2010-04-15 23:19

Re: Desktop Command Execution Widget scripts
 
Please retry with brand new one. Btw: you do have "rootsh" installed, right?

bng 2010-04-16 00:06

Re: Desktop Command Execution Widget scripts
 
success, it works now! thank you

matristain 2010-04-16 00:21

Re: Desktop Command Execution Widget scripts
 
Hi again , I have already done my last request (make a call , wait 4:30minutes and if call is till active hang up and dial again).

I dont want to be off topic but now this is my question.

Is there a wey to get this done?
1.- Remove the WEB icon (launch microB browser) from the menu.
2.- Use the "Desktop Command Execution Widget" or a desktop shortcut to a little app.(.sh or .py) that ask for a password before Launching the Browser.

If there's no master password for the browser maybe we can prevent simple users to use It.

this may also be useful for other apps like Email client.

Jinux 2010-04-18 23:59

Re: Desktop Command Execution Widget scripts
 
Hi, not sure if this has been asked already but please please please could you build in a text wrapping feature. I have a command and the output is super long so I need it to automatically wrap on to the next line.

Awesome Widget otherwise =D

mjec 2010-04-19 04:35

Re: Desktop Command Execution Widget scripts
 
Quote:

Originally Posted by Jinux (Post 616901)
Hi, not sure if this has been asked already but please please please could you build in a text wrapping feature. I have a command and the output is super long so I need it to automatically wrap on to the next line.

Piping your command through fold might do what you need. For example:

command | fold -s -w 60

Note that I haven't tested this. More info on fold is available from http://unixhelp.ed.ac.uk/CGI/man-cgi?fold. Specifically the -w width may be of interest, depending on the width of your widget.

Not quite automatic word wrap, but this should work on a command-by-command basis.

Davey101 2010-04-19 19:50

Re: Desktop Command Execution Widget scripts
 
Quote:

Originally Posted by timperi (Post 609164)
Hi,

I have a script that freezes hildon when booting.
I resolved it with a little wrapper script that prevents it from running when uptime is less that 120 seconds.

Code:

#!/bin/sh

SAFELIMIT=120

if [ `cat /proc/uptime | awk '{ print int($1) }'` -gt $SAFELIMIT ] ; then
        genplaylists.sh /home/user/MyDocs/.sounds
else
        cat /proc/uptime | awk -v limit="$SAFELIMIT" '{print "T-",limit-int($1)}'
fi

Using this the desktop doesn't freeze when booting, just change your own script instead of the "genplaylists.sh ..." -line.
And you can decrease the safe limit also, 120 seconds is a bit overkill.

This is very useful thanks, at least until the new version comes along. :)

I have a couple of commands to wake and hibernate my (Windows XP) desktop PC over my wifi or vpn, so I don't want them both to be executed on every boot of the N900.

However, my hibernate script (using psshutdown and freesshd) is hanging every time it is successfully executed. I'm not yet sure whether that is fixable but it was causing the N900 desktop to hang, so I implemented a timeout to kill the script after a few seconds.

This page led me to this script which does the job perfectly.

Here is my problem script, if anyone can suggest improvements:
Code:

# ssh to Dave (local or VPN) and hibernate
ssh 192.168.69.50 'psshutdown -h -t 00 -accepteula'


Jinux 2010-04-19 19:56

Re: Desktop Command Execution Widget scripts
 
Quote:

Originally Posted by mjec (Post 617069)
Piping your command through fold might do what you need. For example:

command | fold -s -w 60

Note that I haven't tested this. More info on fold is available from http://unixhelp.ed.ac.uk/CGI/man-cgi?fold. Specifically the -w width may be of interest, depending on the width of your widget.

Not quite automatic word wrap, but this should work on a command-by-command basis.

I'll check that out :)

stayloa 2010-04-23 12:41

Re: Desktop Command Execution Widget scripts
 
This app seems to kill my hildon-home and after reboot I get blank desktops... Anyone got anything similar or workarounds?

N900 is still usable so I just uninstall and reboot... apps come back... Annoying though as I want to use this to activate the handwriting recognition script.


All times are GMT. The time now is 06:38.

vBulletin® Version 3.8.8