265 reputation
110
bio website
location
age
visits member for 1 year, 6 months
seen Nov 28 at 17:54

(your about me is currently blank)


Nov
9
awarded  Nice Question
Nov
5
awarded  Popular Question
Oct
22
awarded  Popular Question
Sep
24
awarded  Autobiographer
Sep
23
awarded  Popular Question
Jun
5
awarded  Yearling
Dec
29
accepted Pass multiple commands to flock
Dec
29
comment Pass multiple commands to flock
awesome, thanks so much! The explanation you provided definitely saved me from another hour of headaches
Dec
29
revised Pass multiple commands to flock
edited tags; edited title
Dec
29
accepted Obtain exclusive read/write lock on a file for atomic updates
Dec
29
comment Obtain exclusive read/write lock on a file for atomic updates
Thanks! This helps make sense of the 'advisory' aspect and how I need to use flock each time. very helpful!
Dec
29
asked Pass multiple commands to flock
Dec
29
comment Obtain exclusive read/write lock on a file for atomic updates
Hmm intersting... So in that case it would have been too quick for my human eye to catch. Great! My next challenge is how to put multiple commands in flock, but I'll put that as a separate question. Thanks John!
Dec
29
revised Obtain exclusive read/write lock on a file for atomic updates
added 200 characters in body
Dec
29
comment Obtain exclusive read/write lock on a file for atomic updates
I'm sure I'm using it incorrectly, but while using the code above I can use two shells and have them both edit the counter file while I thought one was locking it. So if I run that line twice on two separate shells, (each with its own number to echo), I still see the second number being written
Dec
29
accepted if env variable exists then exit out of script
Dec
29
revised Obtain exclusive read/write lock on a file for atomic updates
added 174 characters in body
Dec
29
answered Disable cronjob after reboots
Dec
29
asked Obtain exclusive read/write lock on a file for atomic updates
Dec
29
comment How to loop through xargs where each script uses a common env variable
Thanks!! I'll try this out