#!/bin/bash
LAST_SAT=`(cal | awk '$7!=""{t=$7} END {print t}')`
TODAY=`(date +%d)`
echo $LAST_SAT
echo $TODAY
if [[ "$LAST_SAT" = "$TODAY" ]];then
# Reemplazar la linea echo por la llamada al programa
echo "si es"
fi
LAST_SAT=`(cal | awk '$7!=""{t=$7} END {print t}')`
TODAY=`(date +%d)`
echo $LAST_SAT
echo $TODAY
if [[ "$LAST_SAT" = "$TODAY" ]];then
# Reemplazar la linea echo por la llamada al programa
echo "si es"
fi
No hay comentarios:
Publicar un comentario