Workaround is possible and I can redirect the stuff, but it is ugly. If vagrant, as a automation tool, could preserve last for logs, for example, like VirtualBox does, maybe even with huge buffering, that would save a time.
On Fri, Oct 31, 2014 at 3:28 AM, Alvaro Miranda Aguilera <[email protected]> wrote: > you can test something like > > "make | tee -a /vagrant/output_blabla.log" > > I do a lot of test on LXC, so I did a step.sh script > > https://github.com/kikitux/stagefiles/blob/master/step.sh > > so I can run step.sh what_i_want > > and the log goes to what_i_want.log / err > > replace '>>' with ' | tee -a' and you could have both, console and log > > > Alvaro. > > On Fri, Oct 31, 2014 at 9:27 AM, anatoly techtonik <[email protected]> > wrote: >> >> I am running some bash scripts during provisioning that invoke >> makefiles that fetch and build a lot of things producing lots of >> output. >> >> On Thu, Oct 30, 2014 at 11:16 PM, Shawn Neal <[email protected]> wrote: >> > @anatoly The original poster was using Chef, what is it you're doing? >> > >> > On Thursday, October 30, 2014 11:06:38 AM UTC-7, anatoly techtonik >> > wrote: >> >> >> >> And I am not using Chef. >> >> >> >> On Thu, Oct 30, 2014 at 8:52 PM, Shawn Neal <[email protected]> wrote: >> >> > Assuming you're already writing the Chef output to a log file, just >> >> > ensure >> >> > the log is put into the /vagrant folder on the guest. This folder is >> >> > already >> >> > mapped back to the host machine in the same directory as your >> >> > Vagrantfile. >> >> > >> >> > On Wednesday, October 29, 2014 10:29:28 PM UTC-7, anatoly techtonik >> >> > wrote: >> >> >> >> >> >> >> >> >> On Sunday, October 6, 2013 11:33:49 AM UTC+3, Jean Mertz wrote: >> >> >>> >> >> >>> I was wondering if it's possible to view (and parse) the vagrant >> >> >>> log >> >> >>> of >> >> >>> the last (provision) run >> >> >> >> >> >> +1 >> >> > >> >> > -- >> >> > You received this message because you are subscribed to a topic in >> >> > the >> >> > Google Groups "Vagrant" group. >> >> > To unsubscribe from this topic, visit >> >> > https://groups.google.com/d/topic/vagrant-up/wiePEohrmmo/unsubscribe. >> >> > To unsubscribe from this group and all its topics, send an email to >> >> > [email protected]. >> >> > For more options, visit https://groups.google.com/d/optout. >> >> >> >> >> >> >> >> -- >> >> anatoly t. >> > >> > -- >> > You received this message because you are subscribed to a topic in the >> > Google Groups "Vagrant" group. >> > To unsubscribe from this topic, visit >> > https://groups.google.com/d/topic/vagrant-up/wiePEohrmmo/unsubscribe. >> > To unsubscribe from this group and all its topics, send an email to >> > [email protected]. >> > For more options, visit https://groups.google.com/d/optout. >> >> >> >> -- >> anatoly t. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Vagrant" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Vagrant" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/vagrant-up/wiePEohrmmo/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. -- anatoly t. On Fri, Oct 31, 2014 at 3:28 AM, Alvaro Miranda Aguilera <[email protected]> wrote: > you can test something like > > "make | tee -a /vagrant/output_blabla.log" > > I do a lot of test on LXC, so I did a step.sh script > > https://github.com/kikitux/stagefiles/blob/master/step.sh > > so I can run step.sh what_i_want > > and the log goes to what_i_want.log / err > > replace '>>' with ' | tee -a' and you could have both, console and log > > > Alvaro. > > On Fri, Oct 31, 2014 at 9:27 AM, anatoly techtonik <[email protected]> > wrote: >> >> I am running some bash scripts during provisioning that invoke >> makefiles that fetch and build a lot of things producing lots of >> output. >> >> On Thu, Oct 30, 2014 at 11:16 PM, Shawn Neal <[email protected]> wrote: >> > @anatoly The original poster was using Chef, what is it you're doing? >> > >> > On Thursday, October 30, 2014 11:06:38 AM UTC-7, anatoly techtonik >> > wrote: >> >> >> >> And I am not using Chef. >> >> >> >> On Thu, Oct 30, 2014 at 8:52 PM, Shawn Neal <[email protected]> wrote: >> >> > Assuming you're already writing the Chef output to a log file, just >> >> > ensure >> >> > the log is put into the /vagrant folder on the guest. This folder is >> >> > already >> >> > mapped back to the host machine in the same directory as your >> >> > Vagrantfile. >> >> > >> >> > On Wednesday, October 29, 2014 10:29:28 PM UTC-7, anatoly techtonik >> >> > wrote: >> >> >> >> >> >> >> >> >> On Sunday, October 6, 2013 11:33:49 AM UTC+3, Jean Mertz wrote: >> >> >>> >> >> >>> I was wondering if it's possible to view (and parse) the vagrant >> >> >>> log >> >> >>> of >> >> >>> the last (provision) run >> >> >> >> >> >> +1 >> >> > >> >> > -- >> >> > You received this message because you are subscribed to a topic in >> >> > the >> >> > Google Groups "Vagrant" group. >> >> > To unsubscribe from this topic, visit >> >> > https://groups.google.com/d/topic/vagrant-up/wiePEohrmmo/unsubscribe. >> >> > To unsubscribe from this group and all its topics, send an email to >> >> > [email protected]. >> >> > For more options, visit https://groups.google.com/d/optout. >> >> >> >> >> >> >> >> -- >> >> anatoly t. >> > >> > -- >> > You received this message because you are subscribed to a topic in the >> > Google Groups "Vagrant" group. >> > To unsubscribe from this topic, visit >> > https://groups.google.com/d/topic/vagrant-up/wiePEohrmmo/unsubscribe. >> > To unsubscribe from this group and all its topics, send an email to >> > [email protected]. >> > For more options, visit https://groups.google.com/d/optout. >> >> >> >> -- >> anatoly t. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Vagrant" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Vagrant" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/vagrant-up/wiePEohrmmo/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. -- anatoly t. -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
