![]() |
Re: Desktop Command Execution Widget scripts
|
Re: Desktop Command Execution Widget scripts
The output of the free command separates out buffers and cache, which is also technically free memory for applications.
|
Re: Desktop Command Execution Widget scripts
Quote:
|
Re: Desktop Command Execution Widget scripts
Quote:
|
Re: Desktop Command Execution Widget scripts
Yes, about the cache/buffer memory, it is true. I'll redesign scripts to use /proc/meminfo and extract information from there, this'll fix readings.
|
Re: Desktop Command Execution Widget scripts
I'm trying to use the world time command -
http://wiki.maemo.org/Desktop_Comman...pts#World_time But i think i need to store the shell script somewhere for me to use it. Any one used this? |
Re: Desktop Command Execution Widget scripts
Whoever wrote previous scripts made some big mistakes, because the first one wasn't working and the second one was too complicated. I've rewritten scripts and whole wiki part.
afaq: Go and get the right ones and post feedback if they don't work. |
Re: Desktop Command Execution Widget scripts
Pavol & others: the wiki page has been updated with working scripts for memory usage. The readings should be fine now. Please retest them...
|
Re: Desktop Command Execution Widget scripts
I am not sure if this is posible by this app , or if there's any other that can do what I am looking for (I have a plan with free 5 minutes call to one number)
I am looking for a shortcut that execute the call to this number and end it afer 4:50 minutes, It will be great if it is ended by the script (command) execute it self again, *unless the call its ended manually. |
Re: Desktop Command Execution Widget scripts
go to Phone control wiki page ang get the two commands for calling and ending the call. then write the script.
#!/bin/sh -dial command- sleep 290 -end call command- 290 = time in seconds. then execute this script with dcew: sh /path/script.sh | echo "" remember that script has to be executable and cannot be in mydocs. |
Re: Desktop Command Execution Widget scripts
Quote:
Maybe this could work around: sh /path/script.sh & ; echo "" This way, the script would run in background and DCEW would receive the 'output' immediately. I didn't test it, just an idea. |
Re: Desktop Command Execution Widget scripts
I just can now make the call and end it the problem y have is when I end the call manually the script make the call again be cause it keeps running.
I try this if dbus-send --system --dest=com.nokia.csd.Call --print-reply /com/nokia/csd/call com.nokia.csd.Call.Instance.GetStatus = "8" (this is call active, AFAIK) then "End call" else exit fi And get this error "Data item "=" is badly formed" Any advice? |
Re: Desktop Command Execution Widget scripts
Yeah, it's not THAT easy...
1. forgot #!/bin/sh 2. here: if [ `dbus-send --system --dest=com.nokia.csd.Call --print-reply /com/nokia/csd/call com.nokia.csd.Call.Instance.GetStatus` = 8 ] |
Re: Desktop Command Execution Widget scripts
I just uploaded a new version do -devel that addresses many of the bugs described here (including for example the execution at boot, the settings dialog glitches..).
I'll leave it on -devel for some days and then start the promotion process. Note that I didn't address any feature requests yet. Enjoy.. |
Re: Desktop Command Execution Widget scripts
ive had to uninstall this app as my fone really dont like it. every few hours my n900 freezes, but now its uninstalled its working fine
|
Re: Desktop Command Execution Widget scripts
I ve set a custom command named temperature with the command "cat /sys/devices/platform/omap34xx_temp/temp1_input" and every time I m doing a reboot it resets to uptime. Is this a known bug?
|
Re: Desktop Command Execution Widget scripts
Quote:
Does it address the bug associated with hildon-home/desktop freezing? |
Re: Desktop Command Execution Widget scripts
Quote:
Try removing "/home/user/.desktop_cmd_exec" to clean your settings file and see if that happens again.. |
Re: Desktop Command Execution Widget scripts
Quote:
But some older versions had different lock ups that no longer exists. (as far as I know). |
Re: Desktop Command Execution Widget scripts
What are the malicious commands?
|
Re: Desktop Command Execution Widget scripts
Quote:
This situation is getting *really* old... |
Re: Desktop Command Execution Widget scripts
This is garbage! please post usefull info!!!!!!! Like codes we can use!!
|
Re: Desktop Command Execution Widget scripts
Quote:
|
Re: Desktop Command Execution Widget scripts
I am currently using 0.9 (very buggy).
Cannot upgrade to 1.10 because of missing dependency libhildon1. |
Re: Desktop Command Execution Widget scripts
Quote:
Hopefully not long now :D |
Re: Desktop Command Execution Widget scripts
Quote:
|
Re: Desktop Command Execution Widget scripts
Changed Load: definition http://wiki.maemo.org/Desktop_Comman...t_scripts#Load
from: Code:
uptime | sed 's/min/:/' | awk -F "[: ]" '{print $12,$13,$14}'to: Code:
uptime | sed 's/.*load.*: *//'It eliminates the awk execution, therefore is much quicker. |
Re: Desktop Command Execution Widget scripts
Cool, I also improved "uptime" script based on your example.
|
Re: Desktop Command Execution Widget scripts
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/shAnd you can decrease the safe limit also, 120 seconds is a bit overkill. |
Re: Desktop Command Execution Widget scripts
1)
hi all, I would love to have a script that would send a predefined SMS to specific number, perhaps something similar to what matristain wanted. I only found this article: http://wiki.maemo.org/Phone_control#Send_SMS thanks for any help 2) also, increase power of FM transmitter script in the wiki does not work Code:
rootsh echo 118 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level | echo ""Code:
echo "echo 118 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level" | sudo gainroot |
Re: Desktop Command Execution Widget scripts
Please try the new FM transmitter script which you can found in wiki.
|
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 |
Re: Desktop Command Execution Widget scripts
Please retry with brand new one. Btw: you do have "rootsh" installed, right?
|
Re: Desktop Command Execution Widget scripts
success, it works now! thank you
|
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. |
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 |
Re: Desktop Command Execution Widget scripts
Quote:
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. |
Re: Desktop Command Execution Widget scripts
Quote:
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 |
Re: Desktop Command Execution Widget scripts
Quote:
|
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:37. |
vBulletin® Version 3.8.8