and I am newbie for linux, I am sorry if this question is so dumb. I would like to know to create crontab properly, I create job as below:
* * * * * /usr/src/debug/http/cron_job.sh >/dev/null 2>&1
inside cron_job.sh as below
pidof html
if [ 0 = $? ]
then
echo running
else
cd /usr/src/debug/http/
./html
fi
but when I check the running program it show that
2738 ? ... ./html
2748 ? ... ./html
2788 ? ... ./html
its seems duplicate it running the application, is there any wrong with my setting? kindly let me know how to solve this issued?
thank you for your help.