33,643 reputation
44690
bio website blog.denniswilliamson.us
location United States
age
visits member for 5 years, 6 months
seen 7 hours ago

                I am the first user
            to earn at least 30,000
            reputation points each

                 
                    on all three of
                  Stack Overflow,
                 Server Fault and
                     Super User.


         I was also the first user to
surpass 10,000 and 20,000 points each
          on all three of those sites.


Are you a Stackathlete?

Check the standings on


Profile:
I'm a Unix/Linux sysadmin/programmer

Devotion to Duty
Devotion to Duty
Try my unofficial Printifier for xkcd.


Nov
17
awarded  Caucus
Oct
12
awarded  Nice Answer
Sep
30
awarded  Explainer
Sep
22
comment Bash: Execute command from variable without eval
Please see BashFAQ/050.
Sep
22
revised use bash to open a file and output the last line
Clarification
Sep
22
comment use bash to open a file and output the last line
/dev/stdout works for me, but note that it outputs to the terminal being inspected. If you want it to output to another terminal, perhaps the one running the gdb command, use the specific terminal device instead of /dev/stdout (e.g. /dev/pts/15).
Sep
22
comment use bash to open a file and output the last line
@alexus: I dont think so. It looks like he's asking gdb to tell Bash to write the history, which is contained in memory, of a currently running shell. In fact, I just tested it, and that's what it does. And tail -n 1 ~/.bash_history doesn't show the most recent command from the test session.
Sep
22
comment use bash to open a file and output the last line
@alexus: .bash_history is usually only written when the shell exits so a simple tail probably won't work.
Sep
22
comment Bash and background processes PGID and receiving signals
Why are you putting the process in a subshell?
Sep
22
answered how to run the dialog command with proccess
Aug
21
awarded  Popular Question
Aug
20
awarded  Nice Answer
Aug
5
comment How to determine if a bash variable is empty?
@antonio: Thanks, that's a relatively recently added feature and I checked an earlier version. ksh also supports it, by the way.
Aug
5
revised How to determine if a bash variable is empty?
removed reference to zsh
Aug
5
comment How to determine if a bash variable is empty?
@antonio: I don't know what -v is supposed to be, Bash doesn't have such a test. It appears that you are correct about zsh. While it supports the double bracket syntax, it doesn't appear to support an implied test. I'll edit my answer.
Aug
1
awarded  Nice Answer
Jul
26
comment How to tell GNU screen to run .bash_profile in each new window?
@THESorcerer: On my system, screen sources ~/.bashrc without the shell command shown in the other answer.
Jul
18
awarded  Nice Answer
Jul
10
comment How to create a UUID in bash?
@Rob: To answer your original question, it's for drive labels.
Jul
7
comment What's the difference between authorized_keys and authorized_keys2?
@javadba: CentOS is in the same boat as Red Hat.