Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Call perl script and capture values in bash.

by choroba (Cardinal)
on Sep 18, 2012 at 08:13 UTC ( [id://994233]=note: print w/replies, xml ) Need Help??


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! :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://994233]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-19 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found