require 'open3'
args = Array[
'../bin/BarcodeReaderCLI',
'-type=code128',
'"https://wabr.inliteresearch.com/SampleImages/1d.pdf"',
'@./brcli-example.config' #/ Additional options and sources in configuration file
]
params = args.join(' ')
output, error, status = Open3.capture3(params)
if output != "" then
puts "STDOUT:\n " + output
end
if error != "" then
puts "STDERR:\n " + error
end