I want a PID, just a PID and nothing but a PID.
You'd think ps would have an option for this, but if it does I can't find it.
I've tried piping the results of a PS command into every little unix widget I can think of I can't find a way to get the PID that works every time.
Any suggestions?
I need this so I can write a scripts I need for my rc1.d, rc2.d, etc directories. If anybody can point me to a good FAQ or recommend a good boox for a beginning Linux admin I'd appreciate that as well. I've been underwhelmed by the books I've looked at so far.
You'd think ps would have an option for this, but if it does I can't find it.
I've tried piping the results of a PS command into every little unix widget I can think of I can't find a way to get the PID that works every time.
Any suggestions?
I need this so I can write a scripts I need for my rc1.d, rc2.d, etc directories. If anybody can point me to a good FAQ or recommend a good boox for a beginning Linux admin I'd appreciate that as well. I've been underwhelmed by the books I've looked at so far.