Write a script with your commands in and then get cron to run the script, e.g.
Code:
#!/bin/bash
lines=$(cat file | wc -l | awk '{print $1}')
if [ "$lines" -gt 10 ]
then
echo "There are more than 10 lines in the file!"
fi
Suppose the script was called "linecount.sh", I'd make it executable with
Code:
chmod +x linecount.sh
and then in my crontab, I'd give the full path to it (e.g. if it resided in my home directory, I'd use /home/me/linecount.sh).
You might want to look at the
Advanced Bash-Scripting Guide.
Also, I'd remove your email address from your post, as you'll just open yourself up to being spammed.