bash programming
Michalis Kabrianis
kabrianis at hellug.gr
Sun May 27 11:34:00 EEST 2001
On Sun, 27 May 2001 01:25:39 +0100
Alex <A.Papadopoulos at bradford.ac.uk> wrote:
<snip>
> To problhma einai oti to kill ap'oti kserw douleyei
> mono me PID, kai oxi me process name.
Kai to killall doulevei me process name.
killall wvdial
(gia na einai idio me ayto pou thes tha prepei na einai killall -9 wvdial)
Ayto tha sou skotwsei ola ta processes pou legontai wvdial alla den nomizw
na einai problima ayto.
prosekse giati ayto to killall se alla systimata (p.x. Tru64) legetai
killall5 kai to killall kanei auto pou leei: Kill All
<snip>
> Deyteron, yparxei kapoios tropos na apo8hkeysw sto variable pou 8elw
> mono to
> prwto token tou output tou grep? Twra dhladh h entolh pou trexei einai
> kati tou styl
Ame.
Xrisimopoiw tin dikia sou entoli:
ps | grep wvdial | grep -v pppd | grep -v "grep" | awk '{print $1}'
malista mporeis na kaneis kai :
kill `ps | grep wvdial | grep -v pppd | grep -v "grep" | awk '{print $1}'
`
(prosekse ta eytheia kai straba eisagwgika)
<snip>
--
Michalis Kabrianis
kabrianis at hellug.gr
http://www.it-jobs.gr
More information about the Linux-greek-users
mailing list