I am attempting to set a tempoorary 'lock' file so that another user cannot update a certain file while the lock file exists.
while [file exists $file.lck]{
wait 1
}
The problem I am having is when the lck file is removed, the program does not jump out of the while loop. We use something similar in our Korn Shell scripts which works fine.
while [file exists $file.lck]{
wait 1
}
The problem I am having is when the lck file is removed, the program does not jump out of the while loop. We use something similar in our Korn Shell scripts which works fine.