On Thu, Nov 29, 2001 at 11:15:43AM -0800, [EMAIL PROTECTED] wrote:
> 
> I've seen a number of suggestions for sourcing .profile
> in the cron jobs, but this is not always a good idea, as
> .profile often contains script that will not execute when
> not attached to a tty.

I think sourcing .profile is the 'right' thing to do.

If that breaks then the .profile needs fixing as it'll probably
also break things like rsh/rcp etc.

I've seen both these code sytles used (for sh/ksh/bash etc):

    if [ "$PS1" ]
    then
            ... interactive stuff here ...
    fi

or
    case $- in
    *i*)
            ... commands for an interactive shell here ...
            ;;
    *)      ;;
    esac

Tim.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Tim Bunce
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to