[vox-tech] cron and user environment

Jay Strauss vox-tech@lists.lugod.org
Mon, 1 Sep 2003 23:24:44 -0500


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.

thanks
Jay