I got a cycle in the script which open another scripts.
if [ 1 -lt 3 ]
then
action
fi
Scripts action will be running 2 times at the same time.
Inside of action() is insert into the table.
But what I want is that only first script can do insert into table.