From mboxrd@z Thu Jan 1 00:00:00 1970 From: eyal.oren@deri.org (Eyal Oren) Date: Mon, 12 Nov 2007 14:05:31 +0900 Subject: [sup-talk] patch: execute shell command In-Reply-To: <1194840554-sup-9310@south> References: <1194536747-sup-4081@timmy> <1194840554-sup-9310@south> Message-ID: <1194843828-sup-7014@timmy> Excerpts from William Morgan's message of Mon Nov 12 13:13:40 +0900 2007: > 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 ``? > Also I think the code for this should be in bin/sup rather than in > scroll-mode.rb, since, unless I'm mistaken, it's not specific to > scroll-mode at all. Agree. Wasn't sure where to put it, actually. -- -eyal