Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

killall(1)

Name: Anonymous 2008-05-25 14:07

I think this command needs to support a -Q switch that does the following:

- Outputs nothing if no processes were killed (like -q)
- Returns exit code 0 if no processes were killed (unlike -q)

Good with you all?

Name: Anonymous 2008-05-25 14:08

Oh, by the way, I'm going to modify the source to support this.  Wanted some EXPERT PROGRAMMER's opinions first, though.

Name: Anonymous 2008-05-25 14:16

gb2lulznix ;)

Name: Anonymous 2008-05-25 14:18

What's with the (1)?

Name: Anonymous 2008-05-25 14:22

- Returns exit code 0 if no processes were killed (unlike -q)
Uh…why?  If you want to ignore the exit status, just ignore it.

Name: Anonymous 2008-05-25 14:26

Well, I need it to return non-zero *only if* if there was a problem killing it (ignoring SIGTERM, etc.), *not* if it just couldn't find anything to kill.

>>4 google UNIX Programmer's Manual or UNIX System Administrator's Manual

Name: Anonymous 2008-05-25 14:39

This is retarded, gb2lulznix.

>>6
Return values are not only "zero and non-zero". i.e. you can use 1 for general errors, 2 for no process killed, 3 for problems killing.

Name: Anonymous 2008-05-25 23:38

>>7
Only thing is, shell scripts consider return code 0 successful and anything nonzero as a failure.

But I could do that, only problem is it would break any existing script that depends on killall to only return 0 or 1.

So I think my idea is better.

Name: Anonymous 2008-05-25 23:53

>>8
Anyway, consider yourself lucky if you can get that as a GNU extension[1] in coreutils that will get released next year. I mean, it will work only in your computer.

[1]I'm 99% sure it will get rejected. It's 2008, everything has been written already and you can't add extensions anymore.

Name: Anonymous 2008-05-25 23:57

Only thing is, shell scripts consider return code 0 successful and anything nonzero as a failure.

That if you use "boolean chains", which is purely sintactic sugar. Do you think that breaking portability and patching/recompiling one of the coreutils is better than adding two lines to your script?

Name: Anonymous 2008-05-26 7:16

IM TOTALLY KILLING ALL

Name: Anonymous 2008-05-26 7:45

Name: Anonymous 2008-05-26 7:46

Disregard that, I'm so EXCITED I posted it in the wrong thread.

Name: Anonymous 2008-05-26 9:11

>>9
Don't care if it gets rejected.  I'll release and maintain my own version then.  A Better Way To KillAll(1)®

>>10
Of course I don't want to break existing compatibility.  That's why I want to make it so it only does this when I specify a -Q switch (different from -q btw).

Name: Anonymous 2008-05-26 10:00

Make it take a --humans option while you're at it.

Name: Anonymous 2008-05-26 11:34

bitches don't know about my pkill

Name: Anonymous 2008-05-26 12:24

killall on solaris is awesome

Name: Anonymous 2008-05-26 12:24

>>3,7,13,56
the facesitting of moses

Name: Anonymous 2008-05-26 13:43

>>18,13
Disregard that, I'm so >>13 I posted it in the wrong thread.

Name: Anonymous 2008-05-26 22:33

>>1
$ killall -q '>>1'
killall: unknown signal q; valid signals:
HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG STOP
TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2
$ killall '>>1'
No matching processes belonging to you were found
$ echo $?
1
$ killall '>>1' >/dev/null >&/dev/null | true
$ echo $?
0

Name: Anonymous 2008-05-26 23:47

>>20 lrn2 apt-get

root@minion/home/sawblade1#killall -q
Usage: killall [OPTION]... [--] NAME...
       killall -l, --list
       killall -V, --version

  -e,--exact          require exact match for very long names
  -I,--ignore-case    case insensitive process name match
  -g,--process-group  kill process group instead of process
  -i,--interactive    ask for confirmation before killing
  -l,--list           list all known signal names
  -q,--quiet          don't print complaints
  -r,--regexp         interpret NAME as an extended regular expression
  -s,--signal SIGNAL  send this signal instead of SIGTERM
  -u,--user USER      kill only process(es) running as USER
  -v,--verbose        report if the signal was successfully sent
  -V,--version        display version information
  -w,--wait           wait for processes to die

Name: Anonymous 2008-05-26 23:49

>>21
Christopher,

I'd like to see the corresponding screenshot for that command. Cheers,

James

Name: Anonymous 2008-05-26 23:53

>>20 Oh wait, you just solved my problem.  Thank you!  Looks like I need to stfu and lrn2 unix myself.  Apologies XD

Name: Anonymous 2008-05-26 23:57

Name: Anonymous 2008-05-27 0:01

>>24
The RapidShare Happy Hours are active right now. Have fun!

Ha ha ha. Rapidshit trolled you, fake Christopher

Name: Anonymous 2008-05-27 0:35

>>21
$ man apt-get
No manual entry for apt-get
$ apt-get
apt-get: Command not found.


how do i lrnd2 apt-get?

Name: Anonymous 2008-05-27 5:30

>>26

apt-get apt

Name: Anonymous 2008-05-27 5:49

>>26
sudo apt-get install apt-get

GREATER NEUROMANCY

Name: Anonymous 2008-05-27 6:28

>>28
chris@chrisdesktop:~$ sudo apt-get install apt-get
[sudo] password for chris:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Couldn't find package apt-get

Name: Anonymous 2008-05-27 10:21

>>26
man apt
I mean, uhm, www.opera.com

Name: Anonymous 2008-05-27 13:38

>>29
Fail, sudo doesn't generate such message.

Name: Anonymous 2008-05-27 13:40

sudo apt-get --purge remove apt-get

EVEN GREATER NEUROMANCY.

Name: Anonymous 2008-05-27 14:10

>>31
On UBANTO it does.

Name: Anonymous 2008-05-27 15:03

>>30
$ man apt
No manual entry for apt

Name: Anonymous 2008-05-27 16:06

>>34
Do you have dpkg or apt installed? Expert fukken troll.

Name: Anonymous 2008-05-27 16:19

>>35
Why would I? I'm running Windows.

Name: Anonymous 2008-05-27 21:25

>>36
I lol'd for no reason

Name: Anonymous 2008-05-28 3:09

>>35
why would i? i'm running freebsd, not some toy operating system with a non-free license.

Name: Anonymous 2008-05-28 6:39

>>38
NASA seems to disagree with you

Name: Anonymous 2008-05-28 6:46

freebsd users are always so defensive

Name: Anonymous 2008-05-28 6:59

>>39
The same NASA that insists that global warming is still happening while the earth is actually cooling down?

Name: Anonymous 2008-05-28 12:27

>>41
Obvious troll is obvious

Name: Anonymous 2008-05-30 20:45

>>40
OpenBSD hackers are the best to troll. Try going to Defcon with a FreeBSD CD in your hand and talk to Theo. Hilarity ensues.

Name: Anonymous 2008-05-30 22:06

>>43
Try going to Defcon with a FreeBSD CD in your hand and talk to Theo. Hilarity ensues.
And don't forget to brink your autograph from RMS

Name: Anonymous 2008-05-30 22:10

>>39
but DARPA does

Name: Anonymous 2008-05-30 22:59

>>40
We have small penises ;_;

Name: Anonymous 2008-05-31 4:55

>>42
Umm... global cooling is a much more important problem than global warming.  Did you for example know that the amount of sunlight that gets to the surface of the earth has decreased by 50% since the 50s?

Name: Anonymous 2008-05-31 12:13

>>47
That's global shading, and it means that global warming is a way bigger problem, because it's being masked by global shading.

Anyone have that link to the openbsd mailing list when theo said "The ports system has no non-free material, its just a collection of links"?

Name: Anonymous 2008-05-31 12:16

>>48
That's global shading, and it means that global warming is a way bigger problem, because it's being masked by global shading.
That depends on how you look at it...

Name: Anonymous 2009-03-06 6:15

The same node twice   I mentioned shoving   a tree on   a queue because   recursion naturally fits   best on a   2GHz core 2.

Name: Sgt.Kabukimanꑠ 2012-05-23 6:11

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

Name: bampu pantsu 2012-05-29 3:36

bampu pantsu

Don't change these.
Name: Email:
Entire Thread Thread List