#!/bin/sh
# Time-stamp: "2008-12-06 08:49:29 AKST sburke@cpan.org"
#======================================================================
# Just returns the truth of whether we're under "at" / "atd", i.e.,
# whether we're an "at" job.
#
# If you want a string, not just the exit value, do something like:
#    under_at && echo "Hi from at!" || echo "No at."
#
#======================================================================

lineage | grep -q -E -e '	atd?$'
#                        ^--------------- yup, a literal tab


