Howard, What was the result of the tests? I am guessing that the environments that are furnished by .rc or .bashrc or similar are NOT executed when cron sets up the execution environment. ><> ... Jack I don't enjoy a massacre of ads. Hackaday.com says this should slaughter their existance.
On Mon, Jun 17, 2013 at 11:34 AM, Howard White <[email protected]> wrote: > I've emailed a couple of members with a direct question from which this > general remark is derived. > > Have just learned that a script invoked directly by cron (as in a line > within /etc/cron.d/somescript) does _not_ receive the benefit of that users > .bash_profile or /etc/profile. > > Up to this point, we've had this invocation in root's crontab as su - > username -c "somescript" and I'm trying to move to /etc/cron.d. > > So the question is, if this script is run such that .bash_profile has > already happened, does encountering source .bash_profile cause new problems. > Testing this right now. > > Howard > > -- > -- > You received this message because you are subscribed to the Google Groups > "NLUG" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nlug-talk?hl=en > > --- You received this message because you are subscribed to the Google > Groups "NLUG" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- You received this message because you are subscribed to the Google Groups "NLUG" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nlug-talk?hl=en --- You received this message because you are subscribed to the Google Groups "NLUG" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
