Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8225477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:25:53+00:00 2026-06-07T15:25:53+00:00

I use the phantastic Guard gem to do BDD in Rails. It’s great that

  • 0

I use the phantastic Guard gem to do BDD in Rails. It’s great that it executes all my specs etc. automatically after changing a file, but there are times where I don’t want them to run immediately, and I pause Guard by pressing P in the console. But after several times, this becomes tedious, and it would be nicer to have a system wide keyboard shortcut or something to tell Guard to pause/unpause.

Anybody has an idea on how to accomplish this? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:25:55+00:00Added an answer on June 7, 2026 at 3:25 pm

    I have an idea, but I’m unable to test if it works, since I enjoy my holiday and the data plan I quite expensive, so I try to limit my Internet usage.

    You can execute a shell script like it’s described under Fast User Switching/Apple Menu?. The script itself could send a signal to Guard to start/stop the listener.

    Update:

    The following script has been developed in Guard issue #303.

    local FILE = "/tmp/.guardpaused"
    if [ -f FILE ]; then
      ps -ef | grep -i guard | grep -v grep | awk '{print $2}' | xargs kill -USR2
      rm FILE
      echo "Unpaused files modification listening."
    else
      ps -ef | grep -i guard | grep -v grep | awk '{print $2}' | xargs kill -USR1
      touch FILE
      echo "Paused files modification listening."
    fi
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Use the google-maps-for-rails and it works great! Can I use (routes) url_path in the
Use scenario is pretty simple: I have a desktop only application that could be
Use Memcache php class to interact with the memcached. At the beginning all works
Use case: I find a piece of code that I do not understand at
use case example I have a servlet that is receiving login requests. If a
Use a hidden field will fix my issue... i got it.. Hi All, I
Use cardova 2.0.0. After Compilations app show error: Could not find class 'android.webkit.WebResourceResponse', referenced
use ruby 1.9.2 rails 3.1.3 rake 0.8.7 and when rake cucumber start i have
We use a data acquisition card to take readings from a device that increases
Use of rails 3 recaptcha. In view _form.html.erb insert <%= recaptcha_tags %> But when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.