647 reputation
415
bio website squidoo.com/dannystaple
location London, United Kingdom
age 35
visits member for 3 years, 7 months
seen Jul 14 at 12:48

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.


May
28
awarded  Nice Question
May
28
awarded  Yearling
May
28
asked Can the “du” program be made less aggressive?
May
9
comment Find out if the OS is running in a virtual environment
nice - this works on virtual box: dmesg | grep -i vbox - ACPI: RSDP 000e0000 00024 (v02 VBOX )
May
9
comment ERROR:While Updating
Can you add the output of "uname -a" and "lsb_release -a" please?
May
9
comment ERROR:While Updating
You appear to be switching from 32bit to 64bit packages. I'd certainly be looking to do a fresh install and migrate my configuration to it than try and upgrade through to that.
Apr
16
awarded  Informed
Mar
28
awarded  Self-Learner
Jan
22
comment Why does a desktop launcher does not start my app, while command line does?
It is possible that the script is relying on other aspects of your shell environment that is different from when it is run via the desktop launcher. Perhaps you can add a line near the top to dump the env into a file, and then diff them?
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.