jyotir bhandari
2014-Feb-01 16:15 UTC
[Puppet Users] call exec into another class as a variable / how to get output of shell echo $(($(date +%s) / 60 / 60 / 24)) into variable
Hi
I have date as shell command 'echo $(($(date +%s) / 60 / 60 / 24))', I
want
to call this command in parameter of puppet module, how can i do it.
or how can i use exec { "date": commnand => 'echo $(($(date
+%s) / 60 / 60
/ 24))' } redirect ouput into some variable as $date and call into puppet
parameter.
Jyotir
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/b1100867-b76c-4a5c-8663-96e03dbc04b8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.