what language is this?

Associate
Joined
19 Jul 2006
Posts
1,847
I have this code
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?
 
Getting in to this bash stuff, wrote a few scripts that do back ups.

Which is the 2nd best language for manipulating linux perl or python?
 
Back
Top Bottom