Skip to content
/ waitfor Public

command line tool for waiting until a host is reachable

License

Notifications You must be signed in to change notification settings

daschr/waitfor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

waitfor - command line tool for waiting until a host is reachable

For example:

  • waitfor [host] [port] (waits until host is reachable at port)
  • waitfor -t30 [host] [port] (waits until host is reachable at port, stops after 30 seconds if still not reachable)
  • waitfor [host] (pings until host is reachable)
  • waitfor -t30 [host] (pings until host is reachable, stops after 30 seconds if still not reachable)

Exit codes:

  • 0 = host is reachable
  • 1 = host is not reachable
  • 2 = waitfor received SIGTERM/SIGINT
  • 3 = other error

Please take a look in the Makefile for compilation instructions.

About

command line tool for waiting until a host is reachable

Resources

License

Stars

Watchers

Forks

Packages

No packages published