I have this code
Which works but i need to change the date function. but what language is this in, the echo statement to me looks like php but the fi isnt php.
Is bash a new language?
Code:
#!/bin/bash
FRESHCLAMLOG=/var/log/freshclam.log #change as needed
echo `date +%s` >> $FRESHCLAMLOG
echo 'Attempting to start /usr/bin/freshclam...' >> $FRESHCLAMLOG
/usr/bin/freshclam
if [ $? = 0 ] ; then
echo 'No errors returned.' >> $FRESHCLAMLOG
else
echo 'Something may have gone wrong.' >> $FRESHCLAMLOG
fi
echo 'Cron job attempt ending.' >> $FRESHCLAMLOG
Which works but i need to change the date function. but what language is this in, the echo statement to me looks like php but the fi isnt php.
Is bash a new language?