question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

timeout command not on macOS

See original GitHub issue

Seems like timeout is not available on macOS

wait-for-it.sh  www.google.com:443 --timeout=10 -- echo "its up"
readlink: illegal option -- f
usage: readlink [-n] [file ...]
./scripts/wait-for-it.sh: line 58: timeout: command not found
wait-for-it.sh: timeout occurred after waiting 10 seconds for www.google.com:443
its up

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:20
  • Comments:7

github_iconTop GitHub Comments

9reactions
deigacommented, Jul 23, 2021

@twistezo This doesn’t really solve the issue, as wait-for-it is supposed to be a standalone executable

1reaction
twistezocommented, Jul 22, 2021
brew install coreutils
alias timeout=gtimeout

🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Timeout command on Mac OS X? - Stack Overflow
timeout.sh · 3. An easier way is to use Homebrew: brew install coreutils - then use gtimeout or set your PATH to use...
Read more >
timeout command not available on mac os · Issue #271 - GitHub
running make create-cluster gives an error about the timeout command not available on mac os What did you expect to happen: To be...
Read more >
Is there a timeout for the networksetup command on macOS?
One approach would be to install the GNU tool timeout via brew : $ brew install coreutils. You can see that timeout is...
Read more >
Limiting the execution time of a command line on Mac OS X
Unfortunately the "timeout" command does not exist on mac OS X. (sleep 2;echo 'done') & sleep 1; kill $! 2> /dev/null || :...
Read more >
Install timeout on macOS with MacPorts
Instructions ; To install timeout, run the following command in macOS terminal (Applications->Utilities->Terminal). sudo port install timeout ; To see what files ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found