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 8778985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:39:54+00:00 2026-06-13T19:39:54+00:00

With Cygwin, I tried to use timeout to make my script sleep for a

  • 0

With Cygwin, I tried to use “timeout” to make my script sleep for a few seconds.
But even when I did it according to its syntax it always asks me to try --help, meaning I gave the wrong forms.
Here are the things I’ve tried

timeout 5

timeout 5s

timeout 5.0s

timeout 5.

None of which worked.

Any ideas?!

  • 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-13T19:39:56+00:00Added an answer on June 13, 2026 at 7:39 pm

    I don’t think timeout does what you think it does. From the man page:

    timeout [OPTION] NUMBER[SUFFIX] COMMAND [ARG]…

    Start COMMAND, and kill it if still running after NUMBER seconds. SUFFIX may be ‘s’ for seconds (the default), ‘m’ for minutes, ‘h’ for hours or ‘d’ for days.

    You need to give it that command. Here’s a simple example:

    $ date; timeout 5 sleep 10; date
    Thu, Nov 01, 2012  3:19:28 PM
    Thu, Nov 01, 2012  3:19:33 PM
    

    As you can see, only 5 seconds elapsed even though I ran sleep 10. That’s because it timed out after 5 seconds and the timeout command killed it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've tried executing the following: #!C:\cygwin\bin\bash.exe ls ${WORKSPACE} But that doesn't find ls (even
Is there any apt-get -like program for use with Cygwin? I've already tried cyg-apt
I want to use python's (2.6.5) ctypes with cygwin, but I don't know how
I am trying to use the Omni complete feature with gVim 7.2 but on
Hello I installed cygwin on Windows XP so I can use Unix command in
I'm trying to use xargs on a Cygwin Windows system to remove SVN files
I want to use the linux expect scripts in windows. I tried with perl
I tried Check, but there isnt much documentation (especially about windows) and I keep
At work I use ClearCase and SourceSafe, but have found some time to do
I use NetBeans, Windows and Cygwin with G++ compiler. I'm examining Windows Sockets 2.

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.