nu prea inteleg care-i problema, vrei sa kilaresti toate porcesele care au
un nume "similar"?
ps aux | awk '/kdeinit/ {print $2}' | xargs kill
On Fri, Jan 12, 2001 at 06:39:27PM +0200, [EMAIL PROTECTED] wrote:
> cum fac sa obtin acelasi rezultat ca si cu comanda pidof din redhat.
>
> am incercat asa
> #!/usr/bin/perl -w
>
> $procesele=`ps axuw|grep send|grep -v grep|cut -c 7-14`;
> foreach $proces ($procesele) {
> $OUT=`kill $proces`;
> print "Procesul $proces a fost kill: $OUT\n";
> }
>
>
>
> dar problema este ca $procesele este un singur camp, cum i-au cate o linie, sau alta
>idee, inafara de alua programul de pe alt computer
>
>
> C
>
>
>
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> unsubscribe from this list.
--
___
<o-o> Viorel ANGHEL <vang AT altavista DOT net>
[`-']
-"-"- In Linux We Trust.
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.