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