Questions tagged [lockfile]
106 questions
0
votes
1 answer
lock a file around various servers nodejs
I have multiple Instances of the server.
I have a s3 mounted location for files synchronization.and I have to update those files, one at a time...so I want to take a lock on that file, so that any other Instance cannot work on that file when one is…

Priyanka
- 806
- 1
- 9
- 21
0
votes
2 answers
In search of reliable python process synchronization techniques (Linux non-portable)
[I am having an extremely difficult time to implement a thread-/process-safe solution to acquire a file lock using python 3 on Linux (I do not care about portable solutions as the program I am working on makes extensive use of…

MCH
- 415
- 3
- 11
0
votes
1 answer
With Visual Studio, how to Prevent a release project on a network share to be locked by users?
I created an application in C# that is launched at login to keep track of software installed through thousands of computers. Maintenance is near impossible since the executable is launched from a network share and is often locked as expected.
The…
user2984887
0
votes
1 answer
Deleting a backend file through VBA
I have a multiuser database (POS/billing system), split into front and backend. Each user have copies of both files on their tablets and a master copy is maintained in the office. Each user sends daily data exports which are imported into the master…
0
votes
1 answer
locking a file using lockf in C is not working
Platform: ubuntu 14.4
gcc version: 4.8.2
Language: C
Situation:
I have two files to test the function of lockf.One is to write and the other is to read.
During write target file should be locked, thus disabling the read to open the same…

Mohd Fikrie
- 197
- 4
- 21
0
votes
0 answers
Cronjob for a bash script pauses for 2 minutes once in a while
I am trying to run a bash script on CEntOS 5.5 machine that checks replication on a remote mysql server. The script creates a temporary lock file and is scheduled to run in Crontab every minute. But once in a while the cron job goes out of sync -…

Shashank Punuru
- 13
- 6
0
votes
0 answers
Lockfile exit status 127
I've been trying to use lockfile in order to parallelize some of my processes. Unfortunately, I'm getting an exit status error of 127 whenever I try. Here's the part of my script that uses it (it's in a loop, written in R):
lock.file <-…

Gina
- 17
- 5
0
votes
0 answers
Unable to remove lockfile
I'm trying to use zc.lockfile. I see that a lockfile is created in the same directory as my python script, but when I press ctrl+C, the file is NOT removed. I have a callback registered and have even tested given a long time (not sure if…

tarabyte
- 17,837
- 15
- 76
- 117
0
votes
1 answer
IBM Worklight 6.1 - Unlock generated files with buildtime.sh script
I am using IBM Worklight 6.1 and trying to copy a file into iphone/native/www/worklight folder
The file I am trying to copy/erase is cordova_plugins.js, For that purpose I edited the buildtime.sh shell script by adding the line:
cp…

WiPhone
- 683
- 6
- 24
0
votes
1 answer
LockFailed: failed to create /scratch/
I am running a pyramid server and am trying to load data through celery. However, celery is does nothing. Its log file says:
LockFailed: failed to create /scratch/roman-work-1fb53700.7366
I found advice to change /scratch permissions by:
sudo chmod…

Roman
- 8,826
- 10
- 63
- 103
0
votes
1 answer
Using GroovyScript in SoapUI to access and lock an external file
I have a set of 60 testcases in a project in SoapUI that I want to run concurrently. Each testcase needs to use a value to work. The values are stored in an external file (spreadsheet or textfile). Each testcase needs to get a value from this file…

user3069990
- 1
- 2
0
votes
1 answer
exclusive lock file on windows c webserver
I'm writing a (very small) webserver in C language on Windows.
I need exclusive lock file both on reading and writing files, i've read msdn documentation about locking etc. and I've found the function LockFileEx with the OVERLAPPED structure and an…

user2199646
- 1
- 1
0
votes
1 answer
Ensuring security of my files at web server
I have hosted my website on a shared web-hosting server. However, I am worried about the security of the files that I have kept on the server. Admins of web-hosting service keep on changing the contents of my cron jobs etc. by their own. I am…

Prashant Singh
- 3,725
- 12
- 62
- 106
0
votes
1 answer
Installing gitosis plugin in bitnami redmine missing lockfile
I've been working on this issue for quite some time now and I did not come up with an solution so far. I have installed redmine via a bitnami stack. I set up git via gitosis as well, and now I'm trying to install the gitosis plugin for redmine. But…

Philipp Nowinski
- 114
- 3