A ver si me he enterado bien ;)
He creado un archivo llamado mlrecover.sh en /home/ark (aunque estoy por pasarlo al /usr/local/bin)
Dentro he colocado estas lineas:
#!/bin/bash
if test $(ps aux | grep mlnet | grep -c -v grep) -lt 1; then screen -S mldonkey mldonkey; fi
Y he probado un sh mlrecover.sh y ha funcionado.
Luego he emergido el cron, y desde root he hecho:
crontab -u ark -e
Dentro he colocado esta linea:
*/15 * * * * /home/ark/mlrecover.sh
Y supongo que deberia funcionar.
Eso si...el screen se abre automaticamente, quedandose para que pulsara ctrl+a ctrl+d para dejarlo en detached.
¿Hay alguna manera de automatizar esto tambien?
Porcierto...no funciona el cron así.
Y tampoco con sh /home/ark/mlrecover.sh
------
Otra cosilla...por no abrir mas hilos :P
Estoy intentado actualizar a la 2004.3
He hecho el emerge --sync
Y tras el me dice:
To upgrade do the following steps:
# emerge -n '>=sys-apps/portage-2.0.51'
# cd /etc/
# rm make.profile
# ln -s ../usr/portage/profiles/default-linux/x86/2004.3 make.profile
Ok...lo he hecho.
Ahora hago esto...y vereis el error que me da
shin etc # screen -S emerge emerge -uDav --newuse world
[screen is terminating]
shin etc # emerge -uDav --newuse world
These are the packages that I would merge, in order:
Calculating world dependencies ...done!
[blocks B ] sys-apps/sysvinit (from pkg sys-apps/baselayout-1.9.4-r6)
[ebuild R ] sys-libs/ncurses-5.4-r5 -bootstrap* -build -debug -doc (-uclibc) -unicode 0 kB
[ebuild UD] sys-devel/gettext-0.12.1-r2 [0.14.1] -bootstrap* -emacs +nls 5,592 kB
[ebuild UD] sys-devel/binutils-2.14.90.0.8-r1 [2.15.92.0.2-r1] -bootstrap* -build -debug -multitarget +nls (-uclibc) 10,875 kB
[ebuild UD] sys-libs/zlib-1.2.1-r3 [1.2.2] -build -debug 277 kB
[ebuild UD] app-shells/bash-2.05b-r9 [3.0-r7] -build -debug +nls (-uclibc) 1,923 kB
[ebuild UD] sys-libs/readline-4.3-r5 [5.0-r1] 947 kB
[ebuild UD] sys-apps/help2man-1.29 [1.33.1] 36 kB
[ebuild UD] sys-apps/coreutils-5.2.1 [5.2.1-r2] -acl -build -debug +nls (-selinux) -static (-uclibc) 84 kB
[ebuild R ] sys-apps/portage-2.0.51-r3 -build* -debug (-selinux) 0 kB
*** Portage will stop merging at this point and reload itself,
recalculate dependencies, and complete the merge.
[ebuild UD] sys-apps/diffutils-2.8.4-r4 [2.8.7] -build -debug +nls -static 809 kB
[ebuild UD] sys-libs/db-1.85-r1 [1.85-r2] 0 kB
[ebuild UD] dev-libs/expat-1.95.7 [1.95.8] 289 kB
[ebuild UD] dev-java/java-config-1.2.10 [1.2.11] 15 kB
[ebuild NS ] dev-java/blackdown-jre-1.4.1 -mozilla 40,167 kB
[ebuild NS ] dev-java/blackdown-jdk-1.4.1 -doc -mozilla 39,857 kB
[ebuild NS ] sys-libs/db-4.1.25_p1-r3 -doc +java -tcltk 0 kB
[ebuild UD] sys-devel/libperl-5.8.4-r1 [5.8.5-r1] +berkdb -debug +gdbm -ithreads (-uclibc) 11,810 kB
[ebuild UD] dev-lang/perl-5.8.4-r1 [5.8.5] +berkdb -debug -doc +gdbm -ithreads -perlsuid (-uclibc) 0 kB
[ebuild R ] sys-devel/m4-1.4.1 -bootstrap* +nls 0 kB
[ebuild UD] sys-devel/bison-1.875 [1.875d] -debug +nls -static 795 kB
[ebuild U ] sys-devel/gcc-config-1.3.6-r3 [1.3.5] 0 kB
[ebuild U ] sys-devel/gcc-3.3.4-r1 [3.3.3-r6] +X* -bootstrap -build* -debug +fortran* -gcj -hardened -multilib +nls* -objc -pic -static (-uclibc) 485 kB
[ebuild UD] sys-libs/pam-0.77-r1 [0.77-r2] +berkdb -debug -pwdb (-selinux) 111 kB
[ebuild UD] sys-apps/util-linux-2.12-r4 [2.12b-r1] +crypt -debug +nls +pam (-selinux) -static (-uclibc) 1,819 kB
[ebuild UD] sys-kernel/linux-headers-2.4.21-r1 [2.4.22] -build 27,864 kB
[ebuild UD] sys-apps/baselayout-1.9.4-r6 [1.11.5] -bootstrap -build -debug -livecd (-selinux) -static (-uclibc) 197 kB
[ebuild UD] sys-libs/glibc-2.3.4.20040808-r1 [2.3.4.20041102] -build -debug -erandom -hardened -makecheck -multilib +nls -nptl -pic -userlocales 1,222 kB
[ebuild UD] sys-apps/sed-4.0.9 [4.1.2] -bootstrap* -build -debug +nls -static 751 kB
[ebuild UD] sys-devel/bin86-0.16.0 [0.16.13] 113 kB
[ebuild UD] sys-apps/kbd-1.12-r2 [1.12-r3] +nls 0 kB
[ebuild UD] net-mail/mailbase-0.00-r5 [0.00-r6] 0 kB
[ebuild UD] app-arch/tar-1.14 [1.14.90-r1] -build -debug +nls -static 1,052 kB
[ebuild U ] app-admin/sudo-1.6.7_p5-r2 [1.6.7_p5] +pam -skey 0 kB
[ebuild UD] net-misc/rsync-2.6.0-r3 [2.6.3] -acl -build -debug -static 458 kB
[ebuild UD] sys-apps/procps-3.2.3-r1 [3.2.4] -debug 264 kB
[ebuild UD] net-misc/openssh-3.8.1_p1-r1 [3.9_p1] -X509 -chroot -debug -ipv6 -kerberos -ldap +pam (-selinux) -skey -smartcard -static +tcpd (-uclibc) 798 kB
[ebuild UD] net-misc/wget-1.9-r2 [1.9.1-r2] -build -debug -ipv6 +nls -socks5 +ssl -static 1,309 kB
[ebuild UD] dev-libs/ucl-1.01-r1 [1.03] -debug 333 kB
[ebuild NS ] sys-kernel/gentoo-dev-sources-2.6.9-r4 -build -doc (-ultra1) 195 kB
Total size of downloads: 150,463 kB
!!! Error: The above package list contains packages which cannot be installed
!!! on the same system.
shin etc #
Supongo que no es mucha cosa...pero prefiero preguntar antes de cargarme algo, que para algo soy primerizo en estas lindes