Search Results

Search: Posts Made By: agama
4,684
Posted By agama
Yes, all of the processes eventually grab the...
Yes, all of the processes eventually grab the lock. However, the same process has a very good chance of grabbing the lock every time until it reaches the max tries on the loop. The reason for this...
4,684
Posted By agama
Great!! I tried your programme and it didn't...
Great!! I tried your programme and it didn't have any problem with the number it started. Try adding set -x at the top of your script which might give you a clue as to why it's not stopping
4,684
Posted By agama
The lock file code in your last post is bound to...
The lock file code in your last post is bound to have problems. If two instances of your script both notice that the lock file is missing at the same time, they will both touch the lock file and go...
4,684
Posted By agama
If it is successful on the first try it should...
If it is successful on the first try it should not enter the loop and once it is successful it should exit the loop.


Great ! Try running two of them at the same time. The first should create...
4,684
Posted By agama
Yes, your for loop will start n concurrent...
Yes, your for loop will start n concurrent executions of the same script.

The statement you have in red attempts to make a directory. If it is successful, the if should evaluate to true and the...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 07:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy