Your code gives me warning:
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
(PID=0)
When I run it without dash after 'ps', command executes, but result in PID is 0.
Reply to this message by going to Community
Start a new discussion in Beginner's Corner at Community