Suppressing output from vagrant rsync-auto when in background

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Suppressing output from vagrant rsync-auto when in background

Andrew Szczepanski
I'm trying to run `vagrant rsync-auto` in the background via the command `vagrant rsync-auto > /dev/null 2>&1 &`

However, the original session I ran the command from still receives messages from the process (or possible the subprocesses?) of `vagrant rsync-auto`.

eg:
"==> project: Watching: /Users/yourname/project"

I've also tried passing the `-q` flag like:

config.vm.synced_folder ".", "/home/ubuntu/project", type: "rsync", rsync__exclude: ".git/", rsync__args: ["-q", "--archive", "--delete", "-z"]

This actually gives more output than the default `--verbose` flag -- it now tells me which folders are excluded on each watcher update.

Does anyone know how to suppress this output?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/436605cf-ad29-4b9d-8e0c-078c5f7e0281%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Suppressing output from vagrant rsync-auto when in background

Alvaro Miranda Aguilera
what about

vagrant rsync-auto &>/dev/null

Virusvrij. www.avast.com

On Thu, Aug 10, 2017 at 6:11 PM, Andrew Szczepanski <[hidden email]> wrote:
I'm trying to run `vagrant rsync-auto` in the background via the command `vagrant rsync-auto > /dev/null 2>&1 &`

However, the original session I ran the command from still receives messages from the process (or possible the subprocesses?) of `vagrant rsync-auto`.

eg:
"==> project: Watching: /Users/yourname/project"

I've also tried passing the `-q` flag like:

config.vm.synced_folder ".", "/home/ubuntu/project", type: "rsync", rsync__exclude: ".git/", rsync__args: ["-q", "--archive", "--delete", "-z"]

This actually gives more output than the default `--verbose` flag -- it now tells me which folders are excluded on each watcher update.

Does anyone know how to suppress this output?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/436605cf-ad29-4b9d-8e0c-078c5f7e0281%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ez2sR5N%3DHu8SdF%2BaEuHXgWYr%3D%3DbPDk0isoRgBJpqsYi-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Suppressing output from vagrant rsync-auto when in background

Andrew Szczepanski
I think that did it! To throw it in a background process I did:

(vagrant rsync-auto &>/dev/null) &

Thanks Alvaro!

On Friday, August 11, 2017 at 6:24:06 AM UTC-4, Alvaro Miranda Aguilera wrote:
what about

vagrant rsync-auto &>/dev/null

<a href="https://www.avast.com/sig-email?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFuftbSgu95389HmI-4V1nVL3tGJw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFuftbSgu95389HmI-4V1nVL3tGJw&#39;;return true;"> Virusvrij. <a href="https://www.avast.com/sig-email?utm_medium=email&amp;utm_source=link&amp;utm_campaign=sig-email&amp;utm_content=webmail" style="color:#4453ea" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFuftbSgu95389HmI-4V1nVL3tGJw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.avast.com%2Fsig-email%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Dwebmail\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFuftbSgu95389HmI-4V1nVL3tGJw&#39;;return true;">www.avast.com
<a href="#CAHqq0ez2sR5N=Hu8SdF+aEuHXgWYr==bPDk0isoRgBJpqsYi-A@mail.gmail.com_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1" rel="nofollow" onmousedown="this.href=&#39;#CAHqq0ez2sR5N\x3dHu8SdF+aEuHXgWYr\x3d\x3dbPDk0isoRgBJpqsYi-A@mail.gmail.com_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2&#39;;return true;" onclick="this.href=&#39;#CAHqq0ez2sR5N\x3dHu8SdF+aEuHXgWYr\x3d\x3dbPDk0isoRgBJpqsYi-A@mail.gmail.com_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2&#39;;return true;">

On Thu, Aug 10, 2017 at 6:11 PM, Andrew Szczepanski <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="v-jo1zbvBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">andrewksz...@...> wrote:
I'm trying to run `vagrant rsync-auto` in the background via the command `vagrant rsync-auto > /dev/null 2>&1 &`

However, the original session I ran the command from still receives messages from the process (or possible the subprocesses?) of `vagrant rsync-auto`.

eg:
"==> project: Watching: /Users/yourname/project"

I've also tried passing the `-q` flag like:

config.vm.synced_folder ".", "/home/ubuntu/project", type: "rsync", rsync__exclude: ".git/", rsync__args: ["-q", "--archive", "--delete", "-z"]

This actually gives more output than the default `--verbose` flag -- it now tells me which folders are excluded on each watcher update.

Does anyone know how to suppress this output?

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="v-jo1zbvBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/436605cf-ad29-4b9d-8e0c-078c5f7e0281%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/436605cf-ad29-4b9d-8e0c-078c5f7e0281%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/436605cf-ad29-4b9d-8e0c-078c5f7e0281%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/436605cf-ad29-4b9d-8e0c-078c5f7e0281%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/7233dd17-e0c9-4e15-a24f-9474cf2e84ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Suppressing output from vagrant rsync-auto when in background

Alvaro Miranda Aguilera
to explain what happen on your command:

this:

> /dev/null 2>&1 &

says:

send std output to null
send std err to stdoutput
send job to background

i think order matters

2>&1 > /dev/null  &

should have done the trick,  but &>/dev/null send alls to null

Alvaro


On Wed, Aug 16, 2017 at 5:40 PM, Andrew Szczepanski <[hidden email]> wrote:
I think that did it! To throw it in a background process I did:

(vagrant rsync-auto &>/dev/null) &

Thanks Alvaro!

On Friday, August 11, 2017 at 6:24:06 AM UTC-4, Alvaro Miranda Aguilera wrote:
what about

vagrant rsync-auto &>/dev/null

Virusvrij. www.avast.com

On Thu, Aug 10, 2017 at 6:11 PM, Andrew Szczepanski <[hidden email]> wrote:
I'm trying to run `vagrant rsync-auto` in the background via the command `vagrant rsync-auto > /dev/null 2>&1 &`

However, the original session I ran the command from still receives messages from the process (or possible the subprocesses?) of `vagrant rsync-auto`.

eg:
"==> project: Watching: /Users/yourname/project"

I've also tried passing the `-q` flag like:

config.vm.synced_folder ".", "/home/ubuntu/project", type: "rsync", rsync__exclude: ".git/", rsync__args: ["-q", "--archive", "--delete", "-z"]

This actually gives more output than the default `--verbose` flag -- it now tells me which folders are excluded on each watcher update.

Does anyone know how to suppress this output?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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 vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/436605cf-ad29-4b9d-8e0c-078c5f7e0281%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/7233dd17-e0c9-4e15-a24f-9474cf2e84ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyRX7rAHOEPF9HM-suQ7JiAP3XK%3DuC2Yq%2BXBG%3D5pTMxbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.