3,281 reputation
11019
bio website keith-s-thompson.github.com
location San Diego, CA
age 53
visits member for 1 year, 8 months
seen yesterday
stats profile views 257

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

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


Jul
17
revised Perl script, do cd on terminal
added 327 characters in body
Jul
17
comment Perl script, do cd on terminal
Ah, I missed the "that runs a shell script" part. Which leaves an open question: Why??
Jul
17
answered Perl script, do cd on terminal
Jul
17
comment Perl script, do cd on terminal
Your b.pl script would be more simply written as system './a.sh' -- and it's not particularly useful, since you might as well just invoke a.sh directly.
Jul
13
comment Get a list of 3 letter commands on Mac OS X
I'd pipe the output through something like sed 's,.*/,,' | sort -u to remove the directory names and strip duplicates, and then perhaps through fmt so the output fits on my screen.
Jul
13
comment Get a list of 3 letter commands on Mac OS X
@WarrenYoung: printf is more flexible, and much more consistent, than echo. I agree that echo would almost certainly work fine in this case. Both echo and printf are built-in commands, at least in bash.
Jul
13
answered Using VI to edit shell commands in UNIX
Jul
13
comment Using VI to edit shell commands in UNIX
That sets your default editor (for commands that pay attention to $EDITOR) to vi. It doesn't let you edit shell commands with vi (at least not directly).
Jul
3
comment Origin of 'root' account
I just looked at the Multics documents you linked to. They refer to the root directory (and the root volume), but there's no reference to a root user.
Jul
3
revised Origin of 'root' account
Add links for URLs
Jul
3
suggested suggested edit on Origin of 'root' account
Jul
1
comment random number needed
@Alexios: /dev/urandom is almost always a better choice than /dev/random. See this question and my answer.
Jun
26
comment bash equivalent of this use of tcsh “sched” command?
Pre- vs. post- doesn't matter much; I can live with $today not being set correctly for the first command I execute after midnight.
Jun
26
comment bash equivalent of this use of tcsh “sched” command?
As I said in the question, at won't work; it can't set an environment variable in the shell from which it's invoked.
Jun
25
comment bash equivalent of this use of tcsh “sched” command?
That's likely to be the best I can do. The first disadvantage is what I'm most concerned about. We'll see of anyone else comes up with a better solution.
Jun
25
asked bash equivalent of this use of tcsh “sched” command?
Jun
10
answered Is it possible for a shell script to contain both tcsh and bash commands in the same script?
Jun
4
comment In linux, would it be possible to run a script every day 3 minutes later than the previous day?
To avoid drift, tell the script what time it's supposed to run and let it add 24h 3m to that.
May
25
answered Run a command that is shadowed by an alias
May
25
comment Run a command that is shadowed by an alias
You have to know where the command is. On some systems, the division between /bin and /usr/bin is arbitrary.