gpsdctl.adoc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. = gpsdctl(8)
  2. :author: Eric S. Raymond
  3. :date: 19 January 2021
  4. :email: <esr@thyrsus.com.>
  5. :keywords: gps, gpsdctl
  6. :manmanual: GPSD Documentation
  7. :mansource: GPSD, Version {gpsdver}
  8. :robots: index,follow
  9. :sectlinks:
  10. :toc: macro
  11. :type: manpage
  12. :webfonts!:
  13. include::../www/inc-menu.adoc[]
  14. == NAME
  15. gpsdctl - tool for sending commands to gpsd over its control socket
  16. == SYNOPSIS
  17. *gpsdctl* _action_ _device_
  18. == OPTIONS
  19. *action*:: may be _add_ or _remove_. If no daemon instance
  20. is running when an _add_ is requested, this program will launch one.
  21. *device*:: argument should be the pathname of a device. The device
  22. will be opened by *gpsd* to read sensor data.
  23. == DESCRIPTION
  24. This is a tool for sending an instance of *gpsd* commands over its control
  25. socket to add or remove devices from the daemon's device list. It is not
  26. intended to be called by users, but rather by the Linux hotplug system
  27. and similar facilities.
  28. == ENVIRONMENT
  29. Two environment variables are interpreted.
  30. *GPSD_SOCKET*:: sets the location of the control socket. If the effective
  31. user ID of this program is root then it usually defaults to
  32. _/run/gpsd.sock_, although some systems may use the deprecated
  33. _/var/run/gpsd.sock_ instead. Non-root users will use _/tmp/gpsd.sock_.
  34. *GPSD_OPTIONS*:: may be a list of options to be passed to gpsd when this
  35. tool launches it. It defaults to an empty string.
  36. == RETURN VALUES
  37. *0*:: on success.
  38. *1*:: if the action was unknown or the write to the control socket failed,
  39. == SEE ALSO
  40. *gpsd*(8), *gpsctl*(1), *gps*(1), *libgps*(3), *libgpsmm*(3), *gpsprof*(1),
  41. *gpsfake*(1).
  42. == RESOURCES
  43. *Project web site:* {gpsdweb}
  44. == COPYING
  45. This file is Copyright 2013 by the GPSD project +
  46. SPDX-License-Identifier: BSD-2-clause