19,562 reputation
54169
bio website mikelward.com
location Mountain View, CA
age 33
visits member for 3 years, 9 months
seen 10 hours ago

Computer guy from Australia now living in the US.

Part sysadmin, part developer, part web developer.

My name is pronounced like "Michael".


Sep
19
comment Neither `less` or `less -X` clear screen on exit
No, it's the other way around. less sends smcup on startup, and rmcup on exit, so after you quit less, you are taken back to your shell and can see your shell output but not what you were viewing in less. The -X flag disables sending those terminal escapes, so the less output is mixed in with your shell output.
Sep
19
comment Neither `less` or `less -X` clear screen on exit
Wait, less -X isn't supposed to clear the screen. What happens without the -X option?
Sep
19
comment Neither `less` or `less -X` clear screen on exit
It's also interesting that you say it works in Vim. Hmm...
Sep
19
comment Neither `less` or `less -X` clear screen on exit
You disabled smcup and rmcup in tmux, and now they're not working? That seems to be expected.
Sep
19
revised Add FreeBSD to GRUB2 boot menu
edited title
Sep
17
comment Wrong keybindings in Dvorak
See also unix.stackexchange.com/questions/55919/…
Sep
17
comment Wrong keybindings in Dvorak
This sounds like bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/23244 and similar bugs.
Sep
15
comment Possible to install Linux RHEL completely offline?
What have you tried? You should be able to do so. access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/…
Sep
13
comment PAM authentication program in C recognizes only the logged in user
You probably have pam_rootok in your PAM su stack. First thought is to use a stack without that or create a new one for your application.
Sep
13
comment PAM authentication program in C recognizes only the logged in user
See also bugs.launchpad.net/percona-pam-for-mysql/+bug/907483
Sep
13
comment PAM authentication program in C recognizes only the logged in user
See also unix.stackexchange.com/questions/66392/…
Sep
13
comment PAM authentication program in C recognizes only the logged in user
Does it work it you run your program as root? (e.g. via sudo or setuid root) You may need access to read /etc/shadow according to vkrejcirik.info/2012/06/09/…
Sep
13
answered When to use bash ANSI C style escape, e.g. $'\n'
Sep
13
comment Find files using ls and wildcards
Why do you think this is the syntax? man ls will tell you it takes only a list of files, not a directory then a filename pattern (a.k.a. glob).
Sep
12
comment Need help with a shell script
Please see the homework guidelines.
Sep
11
comment add-apt-repository Raises A Python Error
Can you add the command you ran to the question?
Sep
11
comment start-stop-daemon won't start my Python script as service
You need the -- like in $DAEMON -- $DAEMON_ARGS.
Sep
11
comment start-stop-daemon won't start my Python script as service
I think it's because you removed the quotes from "$prog". Remove the >/dev/null 2>&1 & part and see what happens.
Sep
11
comment start-stop-daemon won't start my Python script as service
I was just copying the flags from the skeleton file. You're right that in this case it looks like --background and friends can be re-added.
Sep
11
comment start-stop-daemon won't start my Python script as service
Well, I identified the problem 23 hours ago, so figured I might as well get the points. ;)