I have written a script to restart tomcat service
# timestamp
ts=`date +%m-%d-%Y_%H:%M:%S`
echo "$ts: Restarting ea-tomcat85..." &>> /home/account_name/restartservice.log
ubic restart ea-tomcat85 &>> /home/account_name/restartservice.log
I want to run this script daily just before midnight using crontab, but the cron job is throwing an error
/home/acount_name/restartservice.sh: line 4: ubic: command not found
Can anyone help me with this issue please?