255 reputation
5
bio website
location
age
visits member for 10 months
seen Jan 10 at 2:20

(your about me is currently blank)


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
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
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
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
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
comment ENV variables in relation to xargs loops
This seems like it might be similar: unix.stackexchange.com/questions/30189/…
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
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
24
comment Use xargs input in eval command
Hi Patrick, very well could be! I have a file that dynamically generates bash commands, and it is not a .sh file. (I could copy the output to an sh file, but am interested in how to execute each line of a non-sh file
Dec
24
comment xargs loop with input variable for use in multi-command
Thanks! I was using -I earlier, which was actually rebooting my server by mistake for some reason :) thanks this is very helpful!
Dec
24
comment Disable cronjob after reboots
Yep, that's why I have this question here! ... how is that done?
Dec
24
comment Disable cronjob after reboots
I still use them , but do not want them to start up until I say so (as is the case with server reboot).
Dec
6
comment cycle through one command's output and use in another command
Thanks! This is very helpful!
Dec
6
comment cycle through one command's output and use in another command
Awesome, thanks so much!
Dec
6
comment cycle through one command's output and use in another command
Very cool, i'll look into that. thanks again - this worked!
Dec
6
comment cycle through one command's output and use in another command
awesome thank you! is the term read always going to be in those types of commands?
Dec
3
comment basic division using variable and integer
Thank you! That article is gold!