Hi
I am trying to execute this
at now + 1 minute <<!
echo "hello" >> /home/krishre/testat.out
echo "there" >> /home/krishre/testat.out
if [ $? -eq 0 ]; then
echo "Its successfull" >> /home/krishre/testat.out
else
echo "It failed" >> /home/krishre/testat.out
fi
!
Some how the if condition is not executing neither if nor else part is printed.
Can someone tell me why,
the other stmts(hello there) are printed fine
thanks
I am trying to execute this
at now + 1 minute <<!
echo "hello" >> /home/krishre/testat.out
echo "there" >> /home/krishre/testat.out
if [ $? -eq 0 ]; then
echo "Its successfull" >> /home/krishre/testat.out
else
echo "It failed" >> /home/krishre/testat.out
fi
!
Some how the if condition is not executing neither if nor else part is printed.
Can someone tell me why,
the other stmts(hello there) are printed fine
thanks