4,909 reputation
11625
bio website keith-s-thompson.github.com
location San Diego, CA
age 55
visits member for 3 years, 1 month
seen yesterday

I'm a programmer and all-around nerd living in San Diego, California.
I work at JetHead Development Inc.

E-mail: Keith.S.Thompson@gmail.com


Feb
3
revised Installing as 'root' is not currently supported - what should I do?
lang-none
Feb
3
answered Installing as 'root' is not currently supported - what should I do?
Jan
24
comment What features are in zsh and missing from bash, or vice versa?
Bash does this, at least as of version 4.2.37; it replaces newlines by semicolons and gives you a single line to edit.
Jan
22
revised Bash autocompletion for an environment variable holding a directory name
added 244 characters in body
Jan
22
comment Bash autocompletion for an environment variable holding a directory name
@l0b0: (a) I already have it. (b) I'm not feeling quite that adventurous. (c) It's suppose to be programmable completion.
Jan
22
asked Bash autocompletion for an environment variable holding a directory name
Jan
18
comment sh script will not execute as root (cron)
Ah, after reformatting I see that that's a root shell prompt after the crontab output.
Jan
18
revised sh script will not execute as root (cron)
Formatting
Jan
18
comment sh script will not execute as root (cron)
You wrote cronjob -l. There is no cronjob command. Did you mean crontab -l? The #!/bin/bash at the top of your script is correct, but then the correct way to invoke it is just /root/miami.sh, not /bin/sh /root/miami.sh; you should remove the /bin/sh from your cron job. Is the stuff in your question after the incorrect cronjob line the output of crontab -l? Did you run crontab -l as the root user? You refer to both thescriptname.sh and miami.sh; if those refer to the same thing, please update your question to be more consistent.
Jan
18
comment sh script will not execute as root (cron)
What is cronjob -e? What is the output of crontab -l executed as root? Why does a bash script have a .sh suffix, and why are you executing it with /bin/sh rather than running it directly? You're using some bash-specific features that /bin/sh may or may not support, but there's not enough information to know whether that's the problem.
Jan
18
revised sh script will not execute as root (cron)
Formatting
Jan
18
comment sh script will not execute as root (cron)
Also posted here on Stack Overflow.
Jan
18
comment How to restrict rm -rf / in CentOS machine?
Not running as root should prevent most of the harm that rm -rf / would otherwise do.
Jan
18
comment sh script will not execute as root (cron)
The fact that you put the word PROPERLY in all-caps frankly makes me wonder whether you've really added the script to your crontab properly. Can you show us the relevant crontab entry?
Jan
18
revised sh script will not execute as root (cron)
Formatting
Jan
16
comment Why does the bell character have a limit?
There's something called "bell urgency", visible as "Enable Bell Urgency" in xterm's middle-click menu and as the BellIsUrgent resource. I'm not sure whether that's relevant.
Jan
16
answered Why does the bell character have a limit?
Jan
9
comment Emacs's <C-l> vim equivalent
That's not equivalent. vim's H, M, and L keep the same text on the screen, just moving the cursor to the appropriate line in the file. The emacs Control-L keeps the cursor on the same line in the file, shifting the portion of the file that you're seeing (like vim's various z commands mentioned in Luis's answer.
Jan
9
comment Should my /usr/local/bin be 700 permissions?
Or perhaps 775 if you want to have a non-root group with permission to update it.
Dec
19
comment Grep lines but let the first line through
@l0b0: Sorry, I mistyped; it printed the header line last.