Tag Info

New answers tagged


In Ubuntu, lxc-dev contains the header files, so it's the starting point for writing code using the LXC libraries. Typically for Ubuntu, foo provides stuff that end-users expect, and foo-dev provides what developers need.


It seems trivial to implement. The bash function below (bar) below behaves like your bar script (based on the short screencast). It also resizes dynamically with the terminal width (on the next call to bar). #!/bin/bash #Helper functions terminal_width(){ local width_height=`stty size` echo ${width_height/* /} } string_times_n(){ local s=$1 local ...


Inter process communication isn't a small question. There is a lot of "it depends" in there. Perl has a whole chapter on the subject under perlipc However for your scenario as described - I'd write a state file, flock it and then write your data there. The flock ensures you don't have a race condition, and the file can be of arbitrary length. You can use ...


Since this is a little bit too long for a comment here it goes... There are two things that got me intrigued: First of all, /dev/sda and /dev/sdb are two different physical drives, otherwise we would be talking about /dev/sda1 and /dev/sda2. So if we are talking about different physical drives their performances may vary. Second, in case this info is ...

Top 50 recent answers are included