X-Git-Url: https://git.llucax.com/mecon/scripts.git/blobdiff_plain/fa98072ed1b6d30af6d93d04c953bacbe2eb6f90..5b9bbee4bae05af7dcdc656458eac147ad3733ce:/novedades/carga diff --git a/novedades/carga b/novedades/carga index 87f8b5c..d905b05 100755 --- a/novedades/carga +++ b/novedades/carga @@ -10,9 +10,14 @@ origen="/home/novedades" home="$origen/novedades" datos="$home/datos" cargas="$home/cargas" -log="$home/carga.log" +defaultlog="$home/carga.log" # Script. +if [ -z "$1" ]; then + log="$defaultlog" +else + log="$1" +fi echo >> "$log" echo "===================================================================" >> "$log" echo >> "$log"