in reply to Re^2: Call perl script and capture values in bash.
in thread Call perl script and capture values in bash.

You can save the output to a bash array to easily access the values:
out=($(script.pl)) date=${out[2]} counter=${out[3]}
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: Call perl script and capture values in bash.
by MacScissor (Acolyte) on Sep 18, 2012 at 09:02 UTC
    Thank you both, finally it works! :)