How can I get a process ID number, without using "pidof". I am running a LinuxPPC, with 2.4 kernel I've tried: ps | grep process | cut -f1 -d" "; but if the pid lenght is less than 5, it only return a space char.
Thank you
ps x | grep telnet | cut -c1-5; This will make the trick...
ps x | grep telnet | cut -c1-5;
pgrep process returns the pid(s) of process
Thanks... pgrep works great
Sollution
ps x | grep telnet | cut -c1-5;
This will make the trick...
pgrep
pgrep process
returns the pid(s) of process
Thanks... pgrep works great
Thanks... pgrep works great