On Wed, Oct 15, 2008 at 10:22 PM, eric pareja <[EMAIL PROTECTED]> wrote:
> You can always set environment variables when you install your > crontab. So a simple if [ -z $VAR ] would work. Alternatively, the OP can create a symlink to the script for use with crontab or in CLI, and then do if [ $(basename $0) == "..." ] ... to check whether or not the script is called via the symlink.
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

