Or just use a command like the following: 

        for P in $(pgrep -P $(pgrep -n dvtm)) ; do ps x -o ppid,tty |grep ^$P ; 
done

This will works with the first instance of dvmt found, though it's extremely
easy to make a script which handles all running instances. Hope this helps.


Regards,
Claudio M. Alessi

-- 
JID: smoppy AT gmail.com
WWW: http://cma.teroristi.org

Reply via email to