From: William Djaja Tjokroaminata Date: 2002-09-17T04:32:02+09:00 Subject: Re: back tick equivalent Hi, What is your platform? At least on linux, I could do puts `ps -elf | grep myusername` In the pickaxe book, it is documented under Chapter "Built-in Classes and Methods" in the Section "module Kernel" with method name "backquote". Regards, Bill =========================================================================== "CHENG, WEI CHI (LNG)" wrote: > Just install ruby last Friday and tried to find the back tick equivalent as > in shell script or perl to get the program output w/o resort to some popen > trickery. Can not find it in the reference book or faq ? > e.g. what is the equivalent of below perl statement > @psout = `ps -elf | grep myusername`;