Skip to main content
34 events
when toggle format what by license comment
Jan 22, 2019 at 4:04 history edited user1130176 CC BY-SA 4.0
added 1047 characters in body
Jan 6, 2019 at 16:45 comment added terdon Huh. And neither does killall -9 ruby?
Jan 6, 2019 at 16:41 comment added user1130176 @terdon thanks but it does not work i.imgur.com/xc1dT1W.png
Jan 6, 2019 at 16:33 comment added terdon Please note that all of the suggestions in the duplicates should work as long as you also use the -9 with them. So pkill -9 -f ruby will work as you expect. As will killall -9 ruby.
Jan 6, 2019 at 16:30 history edited terdon CC BY-SA 4.0
removed rant
Jan 6, 2019 at 15:19 history edited user1130176 CC BY-SA 4.0
added 1092 characters in body
Jan 6, 2019 at 12:35 history edited Rui F Ribeiro CC BY-SA 4.0
deleted 727 characters in body
Dec 11, 2018 at 13:40 history edited user1130176 CC BY-SA 4.0
added 303 characters in body
Jun 12, 2018 at 21:26 comment added user1130176 it's disdain toward the policy that encourages self-elevating snobbish behavior and put-downs of people who seek help, it's not a dismissal of people, it's disdain toward the policy. i am grateful for your help and not dismissing me as stupid or incapable of reading, so thank you for your help in this thread, sincerely. my commands are 'pkill ruby' and 'killall ruby' here's a sample output gist.github.com/kevinchugh/8d6ae3eb79267e8ae1bde6655868fc33
Jun 12, 2018 at 21:12 comment added Kusalananda I'll disregard your blanket dismissal of this site's users and instead I'll ask exactly what your pkill/killall command looked like and also what the ps+grep pipeline that you mention outputs.
Jun 12, 2018 at 21:07 comment added user1130176 @Kusalananda if i a do a ps -A|grep ruby and then run pkill or run killall, and then do a ps -A|grep, the rubies are still there. however, if i do the manual script ps ax | grep ruby | cut -f1 -d' ' | xargs kill the rubies are gone. i know that killall and pkill SHOULD work but they don't. as for this being SO, its the same platform that incentivizes the same self-elevating policing that SO does so i have the same disdain for this site's flaggers as i do SO's.
Jun 12, 2018 at 20:45 history duplicates list edited Kusalananda duplicates list edited from In Bash, when to alias, when to script and when to write a function?, Kill many instances of a running process with one command to In Bash, when to alias, when to script and when to write a function?, Kill many instances of a running process with one command, How to kill all process with given name?
Jun 12, 2018 at 20:44 history duplicates list edited Kusalananda duplicates list edited from In Bash, when to alias, when to script and when to write a function? to In Bash, when to alias, when to script and when to write a function?, Kill many instances of a running process with one command
Jun 12, 2018 at 20:28 comment added Kusalananda @user1130176 You mention in a couple of comments that "pkill/killall does not work". Could you elaborate on that? pkill works well here, and I know that killall work too, so there must be something in your usage of these utilities that is making them "not work". Also, this is not StackOverflow.
Jun 12, 2018 at 20:23 history edited user1130176 CC BY-SA 4.0
expressing my disdain for post flaggers
May 16, 2018 at 2:39 history edited user1130176 CC BY-SA 4.0
added 234 characters in body
May 16, 2018 at 2:35 comment added user1130176 @JohnBollinger kill all and pkill do NOT work.
May 16, 2018 at 2:34 comment added user1130176 Reckless marking of questions as duplicates is self-elevating and does not add value. The linked question does not answer my question, and I still do not have an answer to my question. This is why I hate stack overflow. It rewards trigger happy moderators who like to feel the power of putting other people down to make themselves feel good and leaves people seeking help, like me, with no solution.
May 15, 2018 at 0:55 comment added Jeff Schaller If you're clear enough in your objections to closing this as a duplicate, the Q will enter a "reopen" queue where more well-intended members of the site can discern your intention.
May 15, 2018 at 0:54 comment added Jeff Schaller If you indicate that you've read the linked duplicate question and still feel like you want a specific answer to your question, simply edit the Question to say all that; that your Question is not the grep error, but to achieve the kill behavior your want. Ranting against well-intended members of the site is not a good way to use the site.
May 15, 2018 at 0:52 comment added Jeff Schaller From the duplicate, An alias should effectively not (in general) do more than change the default options of a command. It is nothing more than simple text replacement on the command name. It can't do anything with arguments but pass them to the command it actually runs. So if you simply need to add an argument at the front of a single command, an alias will work. That's a long way of saying "you can't use $1 in aliases". You'd have to read between the lines just a bit to realize that $1 for your grep is empty, which is why grep is complaining.
May 14, 2018 at 22:30 review Reopen votes
May 15, 2018 at 8:21
May 14, 2018 at 22:13 history edited user1130176 CC BY-SA 4.0
added 231 characters in body
May 13, 2018 at 23:42 history closed G-Man Says 'Reinstate Monica'
phemmer
Jeff Schaller
Satō Katsura
Anthony Geoghegan
Duplicate of In Bash, when to alias, when to script and when to write a function?
May 13, 2018 at 16:44 comment added John Bollinger @user1130176, why do you need to "bashify" killall (or pkill)? You can just use it directly to serve the purpose you describe! Or if you want to avoid having to manually provide the -r option then alias superkill='killall -r' is all you need.
May 13, 2018 at 13:15 comment added user1130176 pkill and killall do not work. i do a ps -A|grep ruby after trying both and the processes persist. manually doing the killall command does, but i can't figure out how to bashify it
May 13, 2018 at 7:20 comment added Romeo Ninov Also killall (only in Linux!!!) do what you want
May 12, 2018 at 23:13 review Close votes
May 13, 2018 at 23:42
May 12, 2018 at 23:06 comment added phemmer alias superkill="pkill -f"
May 12, 2018 at 22:48 answer added John Bollinger timeline score: 5
May 12, 2018 at 22:35 comment added llua pkill is shorter than superkill tho
May 12, 2018 at 22:15 answer added jesse_b timeline score: 4
May 12, 2018 at 22:12 review First posts
May 12, 2018 at 22:54
May 12, 2018 at 22:10 history asked user1130176 CC BY-SA 4.0