Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!helios!mtecv2!jgabriel From: jgabriel@mtecv2.mty.itesm.mx (Juan Gabriel Ruiz Pinto) Newsgroups: comp.unix.shell Subject: Re: Killing process w/o number (csh) Message-ID: <3209@mtecv2.mty.itesm.mx> Date: 19 Apr 91 04:21:39 GMT References: <1991Apr18.210847.22260@en.ecn.purdue.edu> Organization: ITESM. Campus Monterrey Lines: 18 nichols@en.ecn.purdue.edu (Scott P Nichols) writes: > PID TT STAT TIME COMMAND >19500 v3 S 0:02 -csh (csh) >19731 v3 S 0:00 sysline -Dhr +15 You could use the next c-shell script to do that.. #!/bin/csh # set line = `ps -ax | grep -v grep | grep sysline` if $status == 0 then kill -9 $line[1] -- Juan Gabriel Ruiz Pinto Internet: Ing. Sistemas Electronicos jgabriel@mtecv2.mty.itesm.mx I.T.E.S.M. Campus Monterrey