Page 19 of 26
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 10:34 am
by momchetoi
Here the result:
Code: Select all
/mnt # /mnt/opt/privateer/usr/bin/cmd_off.sh
Entering character mode
Escape character is '^]'.
/mnt # kill -9 5850
/mnt # 5851
/mnt/bin/ash: 5851: not found
/mnt # /mnt #
Oscam is not killed
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 10:46 am
by zoelechat
I see, change CMD_OFF to
Code: Select all
#!/bin/sh
(echo "kill -9 $(echo $(/mnt/bin/pgrep oscam-))" ; sleep 2) | /mnt/bin/telnet localhost 23
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 2:11 pm
by momchetoi
Code: Select all
/mnt # /mnt/opt/privateer/usr/bin/cmd_off.sh
Entering character mode
Escape character is '^]'.
/mnt # kill -9 2480 2482
/mnt # /mnt #
But oscam was killed
Should I leave it that way?
same error occurs when executing CMD_libAirToSat
Code: Select all
/mnt # /mnt/opt/privateer/usr/bin/CMD_libAirToSat
Entering character mode
Escape character is '^]'.
Do you know how to clear it?
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 4:31 pm
by zoelechat
Not an error, just Telnet "welcome" text... No need to "clear" it, you won't see it anyway
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 5:48 pm
by momchetoi
zoelechat wrote:Not an error, just Telnet "welcome" text... No need to "clear" it, you won't see it anyway
OK, thanks for your help? Anyway I?m little bit surprised by these differences in the two root methods.
P.S. One last question
Should I change the cmd_on.sh too? Now it is:
Code: Select all
#!/bin/sh
echo "/mnt/opt/privateer/usr/bin/oscam/oscam-* -c /mnt/opt/privateer/usr/bin/oscam -w 0 -b" | /dtv/bin/nc localhost 3023
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 5:49 pm
by zoelechat
You should already have changed it
(actually doesn't matter but better "unify"...)
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 5:54 pm
by momchetoi
You mean like this?:
Code: Select all
#!/bin/sh
echo "/mnt/opt/privateer/usr/bin/oscam/oscam-* -c /mnt/opt/privateer/usr/bin/oscam -w 0 -b" | /mnt/bin/telnet localhost 23
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 5:55 pm
by zoelechat
NO. What I pasted above.
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 6:00 pm
by momchetoi
zoelechat wrote:NO. What I pasted above.
Sorry, I missed it somehow
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 6:02 pm
by zoelechat
Well it's just needed to look "above"
ABOVE wrote:CMD_ON:
Code: Select all
#!/bin/sh
(echo "/mnt/opt/privateer/usr/bin/oscam/oscam-* -c /mnt/opt/privateer/usr/bin/oscam -w 0 -b" ; sleep 2) | /mnt/bin/telnet localhost 23