Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: Runs fine on cmd line but not in cron

Re: Runs fine on cmd line but not in cron

From: Tom Phoenix <rootbeer_at_redcat.com>
Date: 2000/06/18
Message-ID: <Pine.GSO.4.10.10006181013480.29843-100000@user2.teleport.com>#1/1

On Sun, 18 Jun 2000, John wrote:

> Your cron job could run a shell script which just does an su -c <user>
> to run the shell script you really want to run under a user which has
> the right environment already.

It's probably not wise or possible to run that program as the superuser. And will that make a login shell? Probably not by default. Of course, if you're going to run a shell script, it should be simple to source the initialization file and be done with it; there's no need to run as root and then use 'su'. Oh, well!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/
Received on Sun Jun 18 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US