Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: candycanearter07 Newsgroups: comp.os.linux.misc Subject: Re: 5 Fun Linux Commands You Should Try At Least Once Date: Wed, 9 Apr 2025 19:40:04 -0000 (UTC) Organization: the-candyden-of-code Lines: 21 Message-ID: References: <67ef0717@news.ausics.net> Injection-Date: Wed, 09 Apr 2025 21:40:04 +0200 (CEST) Injection-Info: dont-email.me; posting-host="46347f3d51e5b0bc761a6744673e538e"; logging-data="1394050"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19I3Qv8pON//STXYnG/3RbSExcqRm+QlbBnevReHgv/yQ==" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:HDZ7i5IBP03CxgyrOdwY1eB95jY= X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]% b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx `~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e ZrQsWJ >|l^I_[pbsIqwoz.WGA] wrote at 22:09 this Thursday (GMT): > rbowman wrote: >> Okay, enough of that... I don't use -9 but killall is handy in small >> doses. > > I use -KILL instead of -9, but if you've got a program that's gone > nuts and it's ingoring SIGTERM, what else can you do? True you > shouldn't need to use it with intended behaviour like in the > article though. > > Another handy signal for killall is -0, which does nothing. It's > handy because you can check whether a process with a certain name > exists or not, eg. > > $ killall -q -0 tin && echo "Tin is running" > Tin is running You can also use pgrep? -- user is generated from /dev/urandom