--- /dev/null
+#!/bin/sh
+#
+# Script para cargar bases de datos.
+#
+# Creado por Leandro Lucarella (llucar) el miƩ ene 22 17:57:00 ART 2003
+#
+
+# ConfiguraciĆ³n.
+home="$1"
+datos="$2"
+root="$3"
+host="tc2120"
+user="novedades"
+pass="h29di974b"
+db="novedades"
+
+# Script.
+/bin/run-parts \
+ --lsbsysinit \
+ --verbose \
+ --arg="$host" \
+ --arg="$user" \
+ --arg="$pass" \
+ --arg="$db" \
+ --arg="$home" \
+ --arg="$datos" \
+ --arg="$root" \
+ "$home/scripts"
--- /dev/null
+#!/bin/sh
+host="$1"
+user="$2"
+pass="$3"
+db="$4"
+home="$5"
+datos="$6"
+
+scp -r "$datos"/* novedades@"$host":"$datos"
+ssh -n novedades@"$host" chmod -v 775 "$datos"
+ssh -n novedades@"$host" chmod -vR 664 "$datos"/*
--- /dev/null
+#!/bin/sh
+host="$1"
+user="$2"
+pass="$3"
+db="$4"
+home="$5"
+datos="$6"
+
+#ssh -n novedades@"$host" rm -vf "$datos"/codep
--- /dev/null
+#!/bin/sh
+host="$1"
+user="$2"
+pass="$3"
+#db="$4"
+db="CODEP"
+home="$5"
+datos="$6"
+
+#cat <<EOT | ssh novedades@"$host" mysql -hlocalhost -u"$user" -p"$pass" "$db"
+#SELECT
+# codigo_actual, nombre_breve
+#INTO OUTFILE
+# '$datos/codep'
+#FIELDS TERMINATED BY
+# ','
+#LINES TERMINATED BY
+# '\n'
+#FROM
+# Dependencias
+#WHERE
+# dependencia_esta_activa = 1;
+#EOT
--- /dev/null
+#!/bin/sh
+host="$1"
+user="$2"
+pass="$3"
+db="$4"
+home="$5"
+datos="$6"
+root="$7"
+
+ssh novedades@"$host" "$root/run-sql-data-parts" localhost "$user" "$pass" "$db" "$datos"
--- /dev/null
+#!/bin/sh
+host="$1"
+user="$2"
+pass="$3"
+db="$4"
+home="$5"
+datos="$6"
+
+#scp -r novedades@"$host":"$datos"/codep "$datos"