RE: crontab and exec

RE: crontab and exec

 

  

I'm thinking also around the same but It's not the sourcing. (I'm not
even at any oracle or rman stuff like that). I'm thinking it is what
cron actually executes in the way of .bash_profile etc. which I thought
was the same as oracle, but if not point me to that place.

-----Original Message-----
From: henry Wollman
[mailto:oracledba-ezmlmshield-x86548971.[Email address protected]
Sent: Thursday, December 29, 2005 4:03 PM
To: LazyDBA Discussion
Subject: RE: crontab and exec


Whenever I have a script that works from the command line, but not from
cron, it is usually something I assume to be in the environment that is
not
when run from cron. cron uses a very limited environment, so if you have
not
sourced something to set up environment parameters, that may be part of
the
problem.

| Henry A.L. Wollman Rejoice and be glad!
|_____________________________________________________
| Moody Bible Institute, Database Administrator, [Email address
protected]
| 820 N. LaSalle Blvd, Chicago, IL 60610 312-329-2291
|_____________________________________________________
-----Original Message-----
From: Patterson Joel
[mailto:oracledba-ezmlmshield-x30363202.[Email address protected]
Sent: Thursday, December 29, 2005 2:51 PM
To: LazyDBA Discussion
Subject: crontab and exec




I'm having a heck of a time with cron on WBEL (linux). (sysadmin being
twirp) -- teaching me sysadmin by letting me figure it out myself, (ie
lazy)... except I don't want to be a sysadmin... nuf of that).

1) Some of you may recall my "exec 1>${file} 1>&2" line of code I use
in my scripts... I am attempting to solve my original riddle (which I
won't go into here), by running my script now via cron. What used to
work does not seem to correctly, at least on this box.

I cannot get any statement after the 'exec' to echo anywhere IF the
script is called from cron. (It works otherwise).

-------------------

2) ALSO. cron is runnig on EST, and my 'date' displays GMT... (I want
cron to run on GMT time as well.

More /etc/sysconfig/clock
ZONE="Europe/London"
UTC=true
ARC=false

Other server have different settings. Where do I go from here?
Something is missing as 'normal' sysadmins have already set up such
things for me and my scripts 'normally' work.


Thanks


--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these
terms:http://www.lazydba.com/legal.html



--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these
terms:http://www.lazydba.com/legal.html



Oracle LazyDBA home page