717 reputation
417
bio website squidoo.com/dannystaple
location London, United Kingdom
age 36
visits member for 4 years, 1 month
seen Jan 18 at 12:46

I've been using Linux since the late 90's, and have had a career involving Solaris, a tiny bit of Irix, and plenty of Linux - mostly operating at the shell scripting and application level.

I currently use XUbuntu for most development, an OSX Desktop on a home PC, and various server setups including RH, FC and Debian.


Jan
2
awarded  Popular Question
Oct
10
comment Tmpfs only with RAM
+1 to h3rrmiller - I've seen a ramfs setup consume all available memory until a machine dies. tmpfs is more appropriate. Also there is little point swapping to ram - why swap at all?
Oct
10
comment Install only a few GNU coreutils?
Not so much an answer as a pointer to an idea - buildroot normally sets up only a subset of coreutils, and if you have a smallish subset, you might want to consider busybox with the relevant tools.
Sep
10
awarded  Editor
Sep
10
comment Doing two things with output from a command
@dubiousjim That semicolon is correct - the pipe works, but the semi colon better expresses what is intended.
Sep
10
revised Doing two things with output from a command
Correcting - the semi colon is what is wanted here.
Dec
18
awarded  Yearling
Nov
6
comment Why do newlines mess up my while condition?
You could probably get the multiline style you want using a subshell - start with an opening paren on the first line and end it before the do. You should also be able to use a bash function here too.
Oct
25
comment How can I get bash to exit on backtick failure in a similar way to pipefail?
Thanks for this. An experience I had was that some errors caught in a later version of bash, were ignored in earlier versions with set -e. My intent here is to harden scripts to the extent that any non-handled error return/failure condition will cause a script to exit. This is in a legacy system which has been known to produce garbage output files and a "0" happy exit code after a half an hour of chaos with the wrong env - unless you were watching output like a hawk (and not all of the errors are on stderr, some are on stdout, and some parts are /dev/null'd), you just don't know.
Oct
25
awarded  Scholar
Oct
21
comment How can I get bash to exit on backtick failure in a similar way to pipefail?
Not sure about the read trick, attempting it lead to the variable not being bound. I think this may be because the other side of the pipe is effectively a subshell, name won't be available.
Oct
21
awarded  Student
Oct
21
answered How can I get bash to exit on backtick failure in a similar way to pipefail?
Oct
21
asked How can I get bash to exit on backtick failure in a similar way to pipefail?
Sep
25
awarded  Autobiographer
Sep
25
awarded  Analytical
Sep
24
comment Which application should I blame for compulsively creating a directory again and again?
Hence the "you may". The other answers on preventing this, and it being the desktop libraries that are probably responsible make sense. However, were it some file being created like this on a device, I'd start with this method, and failing that, start things with an ld preload and asserting when they tried to create that dir - obviously far too extreme for this question, but fun.
Sep
23
comment Yum Cannot Retrieve Repository CentOS 6
Perhaps you could post the content of /etc/yum.conf, or the output of ls /etc/yum.repos.d. Another handy thing would be to mention any proxy setup etc you use.
Sep
23
answered Which application should I blame for compulsively creating a directory again and again?
Sep
23
answered Download only recently modified files with wget over FTP