Hi..
i'm doing a script which is going to verify when a process is down.
All proceses are in a file called PROCESOS.txt, it was crated whit result of:
ps -fea > PROCESOS.txt
now, when a process is only 1 word there is no problem and this word is kept in a variable named "proceso" but when are more than 1 it can not to keep the words in the variable proceso , i'm attaching images about script and the run
where it says " el valor de fin es 11" you can see when "k vale 9" is not doing things (echo commands) progrramated in script.
My doubt is ,why can not all words in variable proceso ?
Thanks, Manuales.