X-Git-Url: https://git.llucax.com/mecon/scripts.git/blobdiff_plain/fa98072ed1b6d30af6d93d04c953bacbe2eb6f90..4da15999131161e3ea4a1fe0be86bb88bd2adfae:/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"