Hi
When I run a bash shell manually, it functions well, but when i run it, using at command i have a problem with the "if" cicle.
#!/usr/bin/bash
/usr/tmc/su - ${USER} <<EOF > ${HOME}/traza.log
at -s -m -f ${PathNewDir}${file}.sh ${HORA} ${A_DATEF[1]} ${A_DATEF[2]},${A_DATEF[4]}
atq
EOF
${PathNewDir}${file}.sh
#!/bin/bash
if [[ -s "$file" ]]; then
echo "OK"
then
echo "not found"
fi
Is it possible to get output of the at command when it is executed??
Is it possible to point the output of the at command, to the log file ??
thanks a lot.
malpa
When I run a bash shell manually, it functions well, but when i run it, using at command i have a problem with the "if" cicle.
#!/usr/bin/bash
/usr/tmc/su - ${USER} <<EOF > ${HOME}/traza.log
at -s -m -f ${PathNewDir}${file}.sh ${HORA} ${A_DATEF[1]} ${A_DATEF[2]},${A_DATEF[4]}
atq
EOF
${PathNewDir}${file}.sh
#!/bin/bash
if [[ -s "$file" ]]; then
echo "OK"
then
echo "not found"
fi
Is it possible to get output of the at command when it is executed??
Is it possible to point the output of the at command, to the log file ??
thanks a lot.
malpa