Thread: Simple grepping program
hi guys/gals. i'm pretty new programming, been playing few bash , perl scripts really. wondering how go writing simple command line script terminate (kill) process.
example this... sudo ps -a | grep bladdehlah sudo kill -9 (process number). how implement in simple bash script?
function need upon grepping process, somehow locate number of process id on line. append && kill -9 function end of script.
cut long story short after grepping, how grab pid line , pipe | kill -9? simple 1 uber programmer dudes im sure, simple step unfamiliar with. cheers - dan
pkill not posix, it's installed on many linux systems.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Simple grepping program
Ubuntu
Comments
Post a Comment