Reputation
355
Top tag
Next privilege 500 Rep.
Access review queues
Badges
4 14
Impact
~21k people reached

  • 0 posts edited
  • 0 helpful flags
  • 34 votes cast
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
Dec
29
revised if env variable exists then exit out of script
added 89 characters in body
Dec
29
asked if env variable exists then exit out of script
Dec
29
accepted Using sed output in another script or command
Dec
29
comment Using sed output in another script or command
Aha!! thanks so much, that'll do it. Thanks also for the explanation
Dec
29
asked Using sed output in another script or command
Dec
25
comment Use xargs input in eval command
@mattdm haha good catch! but yes this is a very secure environment, not some public external file.
Dec
25
answered Use xargs input in eval command
Dec
25
revised xargs loop with input variable for use in multi-command
edited title