NAME
cal, dfl, io, ovr, term – location tool set

SYNOPSIS
loc/cal

loc/dfl [ location ]

loc/io

loc/ovr

loc/term machine location

DESCRIPTION
Collectivelly, these programs provide tools to help locating the user. Usually they are run from scripts like ctxrc as described in env(8).

Each tool writes to standard output a location or exits with an error indication. This makes it feasible to use a shell conditional pipeline (see the example) to determine the location of the user.

Cal is expected to extract the location from the user's calendar, but it is not yet implemented.

Dfl provides a default location and always succeeds. If no parameters are given, the default is none meaning that the user is away.

Io fixes the location according to the last terminal used by the user. It knows how to recognize I/O from omero(1) and also from Octopus logins.

Ovr is used to let the user override, by creating a $home/lib/where file with the location as forced by the user.

Term is used to set a given location if a machine responds to ICMP requests. Used for users who carry their machines. The script pc2who described in env(8) is an alternative for users that do not use Plan B.

EXAMPLE
This fixes the location by first looking if the user did override, then looking at I/O from user's terminals and locating the user nowhere otherwise.
loc/ovr || loc/io || loc/dfl

FILES
/who,/where, /what. $home/lib/where.

SOURCE
/rc/bin/loc

SEE ALSO
env(8)

BUGS
Most tools are specific and assume a setup similar to the one at the Laboratorio de Sistemas at URJC. There is no such thing as a generic–context–toolset.
Copyright © 2008 Lucent Technologies. All rights reserved.