Killing process w/o number (csh)
Juan Gabriel Ruiz Pinto
jgabriel at mtecv2.mty.itesm.mx
Fri Apr 19 14:21:39 AEST 1991
nichols at 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 at mtecv2.mty.itesm.mx
I.T.E.S.M. Campus Monterrey
More information about the Comp.unix.shell
mailing list