Skip to content

Instantly share code, notes, and snippets.

@yannickwurm
Last active December 25, 2015 04:39
Show Gist options
  • Save yannickwurm/6919339 to your computer and use it in GitHub Desktop.
Save yannickwurm/6919339 to your computer and use it in GitHub Desktop.
('proc00001'..'proc00024').each do |processor|
threads << Thread.new(processor) do |threadid|
until commandArray.empty?
commandToRun = commandArray.pop
$log.info('running:' + commandToRun)
## %x[#{commandToRun}]
stdout = %x[#{commandToRun}]
print(stdout)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment