Method: OpenC3.run_process
- Defined in:
- lib/openc3/top_level.rb
.run_process(command) ⇒ Object
Executes the command in a new Ruby Thread.
152 153 154 155 156 157 158 159 160 161 |
# File 'lib/openc3/top_level.rb', line 152 def self.run_process(command) thread = nil thread = Thread.new do system(command) end # Wait for the thread and process to start sleep 0.01 until !thread.status.nil? sleep 0.1 thread end |