in reply to Help with Net::SSH

A trick with ps and grep: If you dont want the grep in your list do simply  ps -opt | grep [c]md! Enclosing the first letter of the command in brackets shows the command but not the grep.