Page 2 of 9

Re: MyButtons - plugin for fast execute commands

Posted: Sat Jan 08, 2011 9:52 am
by reaper7
nescha wrote: Permission denied... :(
Permission denied where/when ??
You must change files permission first!

e.g. chmod 755 nc
and chmod 755 picoff.sh

Re: MyButtons - plugin for fast execute commands

Posted: Mon Jan 10, 2011 12:16 am
by nescha
reaper7 wrote:
nescha wrote: Permission denied... :(
Permission denied where/when ??
You must change files permission first!

e.g. chmod 755 nc
and chmod 755 picoff.sh
Changed permissions, now it reports "Text file busy"

Re: MyButtons - plugin for fast execute commands

Posted: Mon Jan 10, 2011 1:27 am
by reaper7
I don't know from where You can try execute these files...
first of all - change Your TV IP address inside picoff.sh - remember - this is linux file - and properly end of line is LF not CR+LF
copy these files to /mtd_rwarea
then
cd /mtd_rwarea
chmod 755 nc
chmod 755 picoff.sh

now try to execute netcat by:
./nc -h
result is
# ./nc -h
[v1.10]
connect to somewhere: ...
and when working then try to execute picoff.sh:
./picoff.sh

Re: MyButtons - plugin for fast execute commands

Posted: Mon Jan 10, 2011 3:29 am
by nescha
reaper7 wrote:I don't know from where You can try execute these files...
first of all - change Your TV IP address inside picoff.sh - remember - this is linux file - and properly end of line is LF not CR+LF
copy these files to /mtd_rwarea
then
cd /mtd_rwarea
chmod 755 nc
chmod 755 picoff.sh

now try to execute netcat by:
./nc -h
result is
# ./nc -h
[v1.10]
connect to somewhere: ...
and when working then try to execute picoff.sh:
./picoff.sh
I already did get somewhere: I managed to do what you told me and send characters from console where TV executes appropriate command. Unfortunately, when I assign this same command to a button in mybuttons.conf file, it doesn't obey it (usually "Not available" error)

Re: MyButtons - plugin for fast execute commands

Posted: Mon Jan 10, 2011 4:31 pm
by reaper7
You're right - something is wrong with this...
other sh scripts working ok but this one not :(
raw command like echo 26 | /mtd_rwarea/nc 192.168.0.9 2345 from MyButtons don't working too :(
I don't know why...

Re: MyButtons - plugin for fast execute commands

Posted: Mon Jan 10, 2011 7:04 pm
by reaper7
Look inside /mtd_ram/remote.log (Remote LAN Control log file)
You can see if Remote LAN recive sended commands but don't executed it...
maybe it is something like conflict between RLC and MyButtons ?
I use a universal loader (geo650) for coexistence more that one plugin with like this loaders (like a PVR+(geo650), Resizer_v03(sbav1))
Maybe doodlecz used another method for loading module...

Re: MyButtons - plugin for fast execute commands

Posted: Tue Jan 11, 2011 7:39 pm
by nescha
reaper7 wrote:Look inside /mtd_ram/remote.log (Remote LAN Control log file)
You can see if Remote LAN recive sended commands but don't executed it...
maybe it is something like conflict between RLC and MyButtons ?
I use a universal loader (geo650) for coexistence more that one plugin with like this loaders (like a PVR+(geo650), Resizer_v03(sbav1))
Maybe doodlecz used another method for loading module...
mybuttons.log

Code: Select all

COMMAND
[0][0] *echo 26 | /mtd_tlib/GGame/myButtons/nc 192.168.1.100 2345*
RESULT
remote.log

Code: Select all

remote_thread started: pInstance - 0x026FD0A0
received key: 0

Re: MyButtons - plugin for fast execute commands

Posted: Tue Jan 11, 2011 9:22 pm
by reaper7
Check this little program... I call him Remote Lan Sender
this is a little tcp client who send remote key commands from external txt "macro" files line-by-line

first copy two files from attachment to Your fav TV dir
then chmod 755 rls (this is executable)
second file picoff is a text file contains macro (key codes).
rls have 4 parameters: IP PORT SLEEP_BETWEEN_COMMANDS_IN_MS PATH_TO_MACRO_FILE
then execute manually /path_to_rls/rls 192.168.1.100 2345 750 /path_to_picoff/picoff
it's working - check remote.log - all comand recived by remote_lan_control...

then add line to execute rls to mybuttons.conf e.g:
RED|RemoteLanSender|/path_to_rls/rls 192.168.1.100 2345 750 /path_to_picoff/picoff
and execute myButtons->RED
check remote.log - commands recived again but no effect...

Re: MyButtons - plugin for fast execute commands

Posted: Tue Jan 11, 2011 10:37 pm
by mattberlin
Thank you very much for this great tool! This way I can easily mount net drives if my PC is turned on after the TV.

BTW, is there any chance to run Content Library programs with MyButtons?

Best regards,
Matthias

Re: MyButtons - plugin for fast execute commands

Posted: Tue Jan 11, 2011 11:01 pm
by nescha
reaper7 wrote:Check this little program... I call him Remote Lan Sender
this is a little tcp client who send remote key commands from external txt "macro" files line-by-line
...
Same result for me also: remote.log received the key, TV reported result on screen and it is the same as the one executed from console, with only difference that console executes the command but MyButtons doesn't :|.

Any ideas?

Scope for output when sending from console and TV is a bit different so maybe there lies the problem