[vox-tech] cron and user environment
Jay Strauss
vox-tech@lists.lugod.org
Tue, 2 Sep 2003 21:56:43 -0500
It's dying on the following line:
. `awk -F":" '{if ($1 ~ /oracle/) {print $6"/bin/setOraProfile"}}'
/etc/passwd`
Never thought about awk not being in my path, but it isn't during a cron
session
Thanks everyone
Jay
----- Original Message -----
From: "Jeff Newmiller" <jdnewmil@dcn.davis.ca.us>
To: "vox-tech" <vox-tech@lists.lugod.org>
Sent: Tuesday, September 02, 2003 11:48 AM
Subject: Re: [vox-tech] cron and user environment
> On Mon, 1 Sep 2003, Jay Strauss wrote:
>
> > How can I setup my environment from a cron job?
> >
> > I tried:
> >
> > * * * * * . ~/.bash_profile; env > ~/env.out
> >
> > but the second command doesn't run.
> >
> > Currently to workaround I schedule the job from root and do:
> > su - <username> -c ~/bin/thing
> >
> > but don't really want to have to schedule stuff as root.
>
> Do you have a blank line after your crontab entry?
>
> --------------------------------------------------------------------------
-
> Jeff Newmiller The ..... ..... Go
Live...
> DCN:<jdnewmil@dcn.davis.ca.us> Basics: ##.#. ##.#. Live
Go...
> Live: OO#.. Dead: OO#.. Playing
> Research Engineer (Solar/Batteries O.O#. #.O#. with
> /Software/Embedded Controllers) .OO#. .OO#.
rocks...2k
> --------------------------------------------------------------------------
-
>
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
>
>