From: Paul Lutus Date: 2006-11-29T16:50:05+09:00 Subject: Re: I'm a process-spawning idiot. Devin Mullins wrote: > I'm looking for a method that, like Kernel#` and IO::popen, allows me to > call out to the system and grab its stdout. However, I'd like it to > accept multiple args (like Kernel#system), so I don't have to worry > about filenames with spaces and backslashes and the like. Alternatively, > I'll take a lib that escapes strings for Kernel#`, provided it works on > win32, unix, cygwin... > > I'm sure I'm just missing the obvious. Help? You want to what? You want to execute an arbitrary system command and collect the command's output? data = `command arg1 arg2 arg3` Obviously if the provided command line works in a shell, it will work here, and vice versa. -- Paul Lutus http://www.arachnoid.com