vendor/bundle/ruby/1.8/gems/Ruby-MemCache-0.0.1/utils.rb
### Execute the specified shell <tt>command</tt>, read the results, and
### return them. Like a %x{} that returns an Array instead of a String.
Execute the specified shell command, read the results, and
return them. Like a %x{} that returns an Array instead of a String.
Execute the specified shell command read the results and return them . Like a %x {} that returns an Array instead of a String .
def shellCommand( *command )
		raise "Empty command" if command.empty?
		cmdpipe = IO::popen( command.join(' '), 'r' )
		return cmdpipe.readlines
	end
def shellCommand ( * command ) raise "Empty command" if command . empty? cmdpipe = IO :: popen ( command . join ( ' ' ) , 'r' ) return cmdpipe . readlines end
Execute the specified shell <tt>command</tt>, read the results, and
return them.
Execute the specified shell <tt > command< / tt > read the results and return them .
command