Page 18 of 26
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 10:01 am
by zoelechat
You should try kill -9 for oscam, dunno why but sometimes soft kill is enough or forced kill might be needed (seems to depend on oscam version). Retry then on 3023 and 3123 (don't remember the right one on Skype root

)
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 10:05 am
by momchetoi
Code: Select all
/mnt # killall -9 oscam
killall: oscam: no process killed
/mnt # kill -9 oscam
ash: invalid number 'oscam'
/mnt #
/mnt # kill -9 oscam-*
ash: invalid number 'oscam-*'
/mnt # killall -9 oscam-*
killall: oscam-*: no process killed
/mnt #

no success
And what about the problem with CMD_libAirToSat
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 10:07 am
by zoelechat
About libAirToSat, you retried both 3023 and 3123?
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 10:11 am
by momchetoi
OK, that command killed oscam. CMD_ON works, expected.
About libAirToSat I tried both 3023 and 3123 - no success
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 10:14 am
by zoelechat
What if you inject it directly from Telnet?
Code: Select all
samyGOso -A -B -l /mnt/opt/privateer/usr/libso/libAirToSat.so CABLE
does it work?
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 10:15 am
by momchetoi
YES, it does, but the script doesn`t
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 10:16 am
by momchetoi
Could you post also the full text for cmd_off.sh with this command
as this one doesn`t work for me
Code: Select all
#!/bin/sh
echo "kill -9 $(/mnt/bin/pgrep oscam-)"
Here the result when executing it
Code: Select all
/mnt # /mnt/opt/privateer/usr/bin/cmd_off.sh
kill -9 3310
But oscam is not killed
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 10:23 am
by zoelechat
Let's first focus on libAirTosat, in CMD script replace:
Code: Select all
echo "$SAMYGOSODIR/samyGOso -A -B -l $SODIR/libAirToSat.so CABLE" | /dtv/bin/nc localhost 3023
by
Code: Select all
(echo "$SAMYGOSODIR/samyGOso -A -B -l $SODIR/libAirToSat.so CABLE" ; sleep 2) | /mnt/bin/telnet localhost 23
and check if it works
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 10:28 am
by momchetoi
changed and yes, it does

libAirToSat is ok now

cmd_off.sh is now the problem
Re: [App] libSoftPowerOff D/E/F/H
Posted: Sat Nov 14, 2015 10:33 am
by zoelechat
Ok, now let's do the same for oscam scripts
CMD_OFF:
Code: Select all
#!/bin/sh
(echo "kill -9 $(/mnt/bin/pgrep oscam-)" ; sleep 2) | /mnt/bin/telnet localhost 23
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