158 reputation
8
bio website amir.eshel.com
location Israel
age 28
visits member for 2 years, 4 months
seen Apr 27 at 7:43

Jun
9
awarded  Self-Learner
Jan
2
awarded  Popular Question
Sep
14
awarded  Popular Question
Aug
25
awarded  Teacher
Jul
23
accepted RabbitMQ: erl not found
Jul
18
comment RabbitMQ: erl not found
Thanks to the guys at #rabbitmq (freenode) for helping me out.
Jul
18
answered RabbitMQ: erl not found
Jul
18
awarded  Editor
Jul
18
revised RabbitMQ: erl not found
added 52 characters in body
Jul
18
comment RabbitMQ: erl not found
Added PATH info to post via edit.
Jul
18
asked RabbitMQ: erl not found
Jul
12
comment Why does 'pkill /?' kill my SSH session?
@barrycarter, It did something like that when I tried pgrep /* (the shell evaluated multiple files under directory / and sent them as arguments to pgrep), but not with /?. I think its because the shell doesn't find any results for the /? evaluation, so it leaves it as is, and it is passed on to pgrep.
Jul
12
comment Why does 'pkill /?' kill my SSH session?
Thanks for the clarification!
Jul
12
awarded  Supporter
Jul
12
awarded  Scholar
Jul
12
accepted Why does 'pkill /?' kill my SSH session?
Jul
12
comment Why does 'pkill /?' kill my SSH session?
So it's because the pgrep or pkill pattern parameter also matches the process names or command lines (as mentioned in the man page). Since most commands include the / character (include paths), processes are matched almost all the time. Thanks
Jul
12
comment Why does 'pkill /?' kill my SSH session?
I'll remember to pgrep something in the future before running pkill :). However, see my comment to becomingwisest's answer - why does it evaluate to all the processes?
Jul
12
comment Why does 'pkill /?' kill my SSH session?
Just wanted the basic usage, not the "entire man page", so it was kind of an instinct. However, when you play with fire, you just might get burned :)
Jul
12
comment Why does 'pkill /?' kill my SSH session?
So '/?' evaluates to either '/' or ''. Why does this result in killing every process possible?