I have a shell script, named test.sh.
#! /bin/bash
mysql -u root -p <<dbEmployee1
use dbEmployee1;
UPDATE EMPLOYEE SET EMPLOYEE_NAME = 'Cyndi' WHERE EMPLOYEE_ID ='1';
SELECT * from EMPLOYEE;
dbEmployee1
mysql -u root -p <<dbBooks
use dbBooks;
SELECT * FROM Author;
dbBooks
following this tutorial what I want to do is have my script run every 10 seconds, but instead I get below results.
seng@wseng:/$ */10 * * * * /home/seng/Desktop/test.sh
bash: proc/10: Is a directory
What have I missed or done wrong here?
Edit (After execute crontab -e)
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
* * * * * cd /home/seng/Desktop/test.sh