1require 'open3'
2
3args = Array[
4'../bin/BarcodeReaderCLI',
5'-type=code128',
6'"https://wabr.inliteresearch.com/SampleImages/1d.pdf"',
7'@./brcli-example.config' #/ Additional options and sources in configuration file
8]
9
10params = args.join(' ')
11output, error, status = Open3.capture3(params)
12
13if output != "" then
14 puts "STDOUT:\n " + output
15end
16if error != "" then
17 puts "STDERR:\n " + error
18end