390 reputation
1414
bio website heeris.id.au
location
age
visits member for 2 years, 10 months
seen yesterday

Apr
5
accepted What characters do I need to escape when using sed in a sh script?
Apr
4
revised How can I activate the current session in ConsoleKit?
added 146 characters in body
Apr
4
comment How can I activate the current session in ConsoleKit?
In fact, the easiest way to test this is to run ck-launch-session bash -c 'pkexec true'. If there's no output, it works. If you see (as I do) Error executing command as another user: Not authorized, it doesn't.
Apr
3
comment How can I activate the current session in ConsoleKit?
If I call ck-launch-session bash and run ck-list-sessions from within that terminal, the console still has active = FALSE for that session.
Apr
3
asked How can I activate the current session in ConsoleKit?
Mar
23
accepted Is there a command to see where a disk is mounted?
Mar
22
comment Is there a command to see where a disk is mounted?
"If the device was mounted via a different path in /dev that designates the same device, you won't notice it this way." — That is actually the case: I have the udisks symlink (in /dev/disk/by-label/...). But I can resolve to a device node using readlink -f. I like the /proc/mounts idea, I think that might be a bit more reliable than /etc/mtab.
Mar
22
comment Is there a command to see where a disk is mounted?
Although grep ^"${NODE}[[:space:]]\+" /etc/mtab | cut -d ' ' -f 2" is much less fragile...
Mar
22
awarded  Commentator
Mar
22
comment Is there a command to see where a disk is mounted?
Ah, grep ${NODE} /etc/mtab | cut -d ' ' -f 2 should do it.
Mar
22
revised Is there a command to see where a disk is mounted?
added 86 characters in body
Mar
22
comment Is there a command to see where a disk is mounted?
That has a lot of extraneous text though. I need to be able to pass the mount point to other commands. (Sorry, I've clarified that in the Q.)
Mar
22
asked Is there a command to see where a disk is mounted?
Mar
5
accepted How do I configure syslinux to boot immediately
Feb
28
awarded  Supporter
Feb
28
comment What characters do I need to escape when using sed in a sh script?
Are you subconsciously hitting your head against a wall? Here, have a green checkmark.
Feb
28
comment What characters do I need to escape when using sed in a sh script?
Oh, this takes me back. I think this guide by Bruce Barnett has the RE used by sed. But what about the +? That's not in there, but echo 'AAA' | sed 's/A+/*/' won't work without escaping it.
Feb
28
comment What characters do I need to escape when using sed in a sh script?
...and apparently + needs escaping too. That's... interesting.
Feb
28
revised What characters do I need to escape when using sed in a sh script?
deleted 719 characters in body
Feb
28
comment What characters do I need to escape when using sed in a sh script?
facepalm It's not in the man page, but it IS in some online manual I found. Is this normal for regex, because I've never had to use it in regex libraries (in, eg. Python)?