Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
GHOSTS(1)	      User Contributed Perl Documentation	     GHOSTS(1)

NAME
       ghosts -	provides a wrapper for the routines in
       SystemManagement::Ghosts

SYNOPSIS
       ghosts [OPTIONS]	SYSTEMS

	SYSTEMS	is a combination of ghost macros.  See --help for more details.

	-h, --help	      Display full help

DESCRIPTION
       Parses the /etc/ghosts file for matching	hosts.	The first word of each
       line is the "hostname", and each	other word on the line represents that
       host's membership in a given group.  In the example below, there	are
       two machines ("bilbo", "baggins") in the	"prod" group, one ("tolkien")
       in the "e450" group, etc:

	       # Macros
	       sunprod=solaris^e450
	       # Machines
	       #
	       # Name	       Group	       Hardware	       OS
	       bilbo	       prod	       intel	       linux
	       baggins	       prod	       e4500	       solaris
	       tolkien	       devel	       e450	       solaris

       Machine groups can be combined logically	with the "+" and "^"
       characters to produce composite groups.	For example:

	       $ ghosts	intel+e450
	       bilbo tolkien
	       $ ghosts	prod^intel
	       baggins

       The gsh(1) command can be used to run remote SSH	connections to hosts.

OPTIONS
       -h, --help
	       Displays	this full help.

       -g, --ghosts CONFIG_FILE
	       Uses the	provided ghosts	configuration file, instead of
	       /etc/ghosts. This means /etc/ghosts will	not be read at all.

PREREQUISITES
       "POSIX" "SystemManagement::Ghosts"

BUGS
       I bet.

FILES
       /etc/ghosts

SEE ALSO
       perl(1),	gsh(1),	SystemManagement::Ghosts(1)

AUTHOR
       Kees Cook <kees@outflux.net>

       <http://www.outflux.net/>

COPYRIGHT
       Copyright (C) 1998-2014 Kees Cook <kees@outflux.net>

       Supposedly based	on original code distributed with Perl Distribution.

       This program is free software; you can redistribute it and/or modify it
       under the terms of the GNU General Public License as published by the
       Free Software Foundation; either	version	2 of the License, or (at your
       option) any later version.

REVISION
       Revision: $Revision $

perl v5.24.1			  2015-06-19			     GHOSTS(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | PREREQUISITES | BUGS | FILES | SEE ALSO | AUTHOR | COPYRIGHT | REVISION

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=ghosts&sektion=1&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help