#!/bin/sh
# Time-stamp: "2009-01-21 04:24:26 AKST sburke@cpan.org"
#======================================================================
# Just returns the truth of whether we're under "cron" / "crond", i.e.,
# whether we're a cron job.
#
# If you want a string, not just the exit value, do something like:
#    under_at && echo "Hi from cron!" || echo "No cron."
#
#======================================================================

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