396 reputation
111
bio website squidoo.com/dannystaple
location London, United Kingdom
age 34
visits member for 2 years, 5 months
seen May 13 at 9:32
stats profile views 27

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
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.
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?
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
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.
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
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.
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
8
comment Do you need a shell for SCP?
So does this mean /bin/false or /bin/true wouldn't work - or only allow sftp?
Jun
7
comment How to monitor or kill a process which has been started by cron?
Questions - which system, which scheduler? cron?
Jun
7
comment How to add packages onto a Fedora live USB
I am currently building an FC13 based CD with a kickstart CD for auto installing - and trying to find out how to pull packages in. It seems merely having the RPM in the Packages folder on the media is not enough. Once I am there, I'll give you what I get.
Jun
1
comment GNU screen: move between regions
Interesting - that sequence defaults to copy - ^[. How are you interacting with the box - local vt or via remote shell session?
Jun
1
comment GNU screen: move between regions
This looks useful - staldal.nu/tech/2009/01/10/how-to-use-ctrl-tab-in-gnu-screen
Jun
1
comment GNU screen: move between regions
Okay - names I've found (none which yet work with/without -k) backtab, shifted-tab, F91, kB.
Jun
1
comment GNU screen: move between regions
Yes - that would make a load of sense - you could probably bind it to focus up. You may need to figure out a termcap name for shift + tab though. A quick google shows that may take a bit of fiddling.
Jan
11
comment No output produced when using winFF
paste the whole shell command you use for it please.