aiuto pc ubunt

januzzu2

Registered
Messages
13
ciao ragazzi ho 1 poplema sul mio ubunt pc ogni giorno non va in lettura sia oscam e cccam sto uscendo pazzo chi mi da 1 mano su questo poplema grazie
 

alberto

Senior Member
Messages
263
ciao ragazzi ho 1 poplema sul mio ubunt pc ogni giorno non va in lettura sia oscam e cccam sto uscendo pazzo chi mi da 1 mano su questo poplema grazie

Spiecati meglio cosa ce scrito nel file etc/rc.local e nel file etc/crontab e in quale Cartelle ai la CCcam e la Oscam
 

januzzu2

Registered
Messages
13
ciao la CCcam e la Oscam e su bin nella crontab e questa

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
*/1 * * * * /var/script/control.sh > /dev/null 2>&1
0 6 * * * sh /var/script/reboot.sh **** /var/log/reboot#
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

*/1 * * * * /var/script/control.sh > /dev/null 2>&1
0 6 * * * sh /var/script/reboot.sh **** /var/log/reboot#

####RC LOCAL#######
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

#/bin/oscam -b

#sleep 5

#/bin/CCcam1 -dv -C /var/etc/CCcam1.cfg &

/var/script/control.sh

sleep 10

exit 0
 
Last edited:

alberto

Senior Member
Messages
263
ciao la CCcam e la Oscam e su bin nella crontab e questa

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
*/1 * * * * /var/script/control.sh > /dev/null 2>&1
0 6 * * * sh /var/script/reboot.sh **** /var/log/reboot#
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

*/1 * * * * /var/script/control.sh > /dev/null 2>&1
0 6 * * * sh /var/script/reboot.sh **** /var/log/reboot#

####RC LOCAL#######
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

#/bin/oscam -b

#sleep 5

#/bin/CCcam1 -dv -C /var/etc/CCcam1.cfg &

/var/script/control.sh

sleep 10

exit 0


Alora fa cosi nella rc.local e la CCcam e la Oscam si avieranno in Automatico ogni volta che il tuo Server fa un reboot.


####RC LOCAL#######
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

/bin/oscam &

sleep 10

/bin/CCcam

sleep 5

/var/script/control.sh

sleep 5

exit 0
 
Top