260 reputation
15
bio website
location
age
visits member for 1 year, 3 months
seen Jan 10 at 2:20

(your about me is currently blank)


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
Dec
29
comment How to loop through xargs where each script uses a common env variable
I'm cycling through a list, and want to pass one line to a script. each time the script finishes it should start itself up again using the "next" line.
Dec
29
comment How to loop through xargs where each script uses a common env variable
Yea, I've (unfortunately) been made aware of this. I'm really interested to see what the best way to accomplish a task like this will be!
Dec
29
asked How to loop through xargs where each script uses a common env variable
Dec
29
comment ENV variables in relation to xargs loops
This seems like it might be similar: unix.stackexchange.com/questions/30189/…
Dec
29
asked ENV variables in relation to xargs loops