From mboxrd@z Thu Jan 1 00:00:00 1970 From: marcus-sup@bar-coded.net (Marcus Williams) Date: Mon, 12 Nov 2007 15:35:34 +0000 Subject: [sup-talk] patch: execute shell command In-Reply-To: <1194843828-sup-7014@timmy> References: <1194536747-sup-4081@timmy> <1194840554-sup-9310@south> <1194843828-sup-7014@timmy> Message-ID: <1194881637-sup-5906@tomsk> On 12.11.2007, Eyal Oren wrote: > > I like this functionality but the session gem seems like it's overkill > > here. Is there a reason to use it instead of just something like > > output = `#{cmd}` > I also wanted to catch error output, to find out if an unexisting command was > invoked, and I didn't know how to do that with ``? Shouldnt this be possible with open3? The only problem is that open3 is unix only (in std ruby). I think there is a win32 open3 gem though. Marcus