5,084 reputation
11625
bio website keith-s-thompson.github.com
location San Diego, CA
age 55
visits member for 3 years, 3 months
seen Dec 17 at 22:13

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


Oct
24
comment Will a shell script execute in Solaris? if not, which is the fastest way to make it compatible
@jlliagre: /bin/sh does exist on Solaris. Why would using it be a problem? Is it an older version of the shell?
Oct
24
comment Will a shell script execute in Solaris? if not, which is the fastest way to make it compatible
Every UNIX-like system has a shell at /bin/sh. If you avoid features specific either to bash or to ksh, there shouldn't be a problem.
Sep
17
comment Can I make text in xterm looks and feels like gnome-terminal?
@peterph: I think you missed something. See my answer.
Sep
14
comment Why does “tail -f … | tail” fail to produce any output?
What are the last 10 digits of π?
Sep
14
comment Why is number of open files limited in Linux?
@Lothar: Interesting. I wonder why the limits would differ. Given the fileno and fdopen functions I'd expect them to be nearly interchangeable.
Sep
12
comment What is the command for listing all users who are members of the admin group?
visudo edits the sudoers file; use it only if you want to modify it (yes, that's what the OP indirectly asked about). If you just want to view it, cat /etc/sudoers or less /etc/sudoers is sufficient. (You'll need root privileges for any of these, so sudo cat /etc/sudoers, for example.)
Aug
10
comment id command doesn't show all user's groups
The /etc/group file is the default way group information is stored. Systems can supplement it with other sources such as YP/NIS and LDAP. The id and getent commands will query whatever source(s) the system uses. (Likewise for /etc/passwd and several other databases).
Jun
23
comment What does the period indicate when an environmental variable is set like “VARIABLE_NAME=.”
@godlygeek: The root directory does have a .. entry. Another way to look at it is that every directory has a .. entry pointing to its parent -- and the root directory / is its own parent.
Jun
20
comment How to tell “cat” command to not hang on when there is no path provided?
cat "" doesn't hang, but it does print an error message: cat: : No such file or directory (referring to the empty string). It's better to test whether $1 exists, probably by checking the value of $#.
Jun
20
comment Fedora 20. Authentication requires a different password from su
su requires the password for the target account, root by default. Have you tried using sudo, which requires your password?
Jun
16
comment bash equivalent of this use of tcsh “sched” command?
I think I have a better solution that doesn't require using crontab. I'll update this answer (and delete this comment) once I've verified that it actually works.
Apr
29
comment How to set up a cron entry that runs at 00 and 30 after the hour?
The line in your question already does exactly what you want to do.
Apr
15
comment Does `sl` ever show the current directory?
You could always create the intermediate directories -- but then it wouldn't be showing (just) the contents of the current directory.
Apr
14
comment wget - corrupted directories
The command name is wget, and Unix command names are case-sensitive. I've seen documentation refer to it as Wget, but I've never seen it referred to as wGet.
Apr
14
comment wget - corrupted directories
Is there some significance to the spelling wGet rather than wget?
Apr
7
comment Does cron know that the instance to be scheduled is already running?
@Ouki: You should post that as an answer.
Mar
18
comment How to recover from recursive 'chmod -x' on my home folder
At least you didn't chmod -x the directories!
Mar
18
comment How to test what shell I am using in a terminal?
If you're running tcsh, $tcsh and $version will be set. These are shell variables, not environment variables. If you're running a non-tcsh version of csh, I don't think there are any distinctive variables. And of course the syntax used to check variables differs between csh/tcsh on the one hand, and sh/ksh/bash/zsh on the other.
Mar
18
comment How to test what shell I am using in a terminal?
ps | grep $$ can still give false positives if, for example, your current process is 1234 and there's a process 12345.
Mar
12
comment can not chown a file from my $user to another $user
POSIX: "[EPERM] The effective user ID does not match the owner of the file, or the calling process does not have appropriate privileges and POSIX_CHOWN_RESTRICTED indicates that such privilege is required."