View Single Post
Old 08-22-2017, 09:12 AM   #29
nasser
Evangelist
nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.nasser ought to be getting tired of karma fortunes by now.
 
nasser's Avatar
 
Posts: 477
Karma: 445678
Join Date: Feb 2010
Device: Too many..
Coplate,

I duplicated your entry to the debug_cmds.json file, added the flash.sh file to /var/local, checked that it was executable(chmod 777), restarted my PW3 and entered ";coplate" into the search bar.

It didn't work. Only got the standard "not found" message.

As I've mentioned, my PW3 is still on the factory image. Don't know if this makes a difference.

On my PW1 I use a :kt entry to point to /mnt/us/extensions/kterm/bin/kterm.sh", which works fine. The same entry doesn't work on both my PW3 and KT3.

Quote:
Originally Posted by coplate View Post
Hi all, I'm not sure what the dispatch script is, but I just tested adding noew commands on my PW3.

I added this to /usr/share/webkit-1.0/pillow/debug_cmds.json
Code:
[root@kindle local]# cat /usr/share/webkit-1.0/pillow/debug_cmds.json
{
    ";coplate" : "/var/local/flash.sh",
    ";dm" : "/usr/bin/dm.sh",
    ";dmcc" : "/usr/bin/dmcc.sh",
Code:
[root@kindle local]# cat /var/local/flash.sh
#!/bin/sh
sleep 5
eips 0 0 -f
A 5 second timeout is outside it's wait period, but it did draw a '0' on the screen after 5 seconds.

Code:
170821:233951 Xorg: I GestureEngine:perfScenario::Sending button 1 up 1503358791.023752
170821:233951 cvm[4693]: I GoButtonTask:Information::Debug command entered
170821:233951 SCRIPTEXECUTOR[7669]: I script-Executor:main:Ready for execution:Command=/var/local/flash.sh
170821:233956 cvm[4693]: W lipc:perf:prop=executeDebugCommand, source=com.lab126.system, ms=5027:lipc property access took too long
It originally logged that it was running, but didn't actually, I gave the script full permisions., (777) and it ran. I didn't even need a reboot to change to flash, though the ';coplate' was in there on the last reboot, with a copy of the dump entry.

Nasser, if you are still trying, check the execute permissions on the script?
nasser is offline   Reply With Quote