[GRLUG] crontab not running a working script

John-Thomas Richards jtr at jrichards.org
Thu Jan 12 15:27:13 EST 2012


On Thu, Jan 12, 2012 at 03:14:34PM -0500, Bob Kline wrote:
> On Thu, Jan 12, 2012 at 3:02 PM, <scott.tanner at comcast.net> wrote:
> 
> > Can you add a troubleshooting commands to the cron job, such as:
> >
> > 1 23 * * * env && /home/jtr/bin/syncmemotoo
> >
> > This will spit out some environment variables when the process runs, I'd
> > be curious as to the PWD, PATH and LOGIN variables.
> >
> > Also, can you run the "syncevolution memotoo" command from anywhere on the
> > system, or do you have to be in you're home dir?
> >
> 1 23 * * * su -l jtr && /home/jtr/bin/syncmemotoo
> 
> su -l jtr somewhat supplies one's own environment.
> 
> Just a guess.

Following Scott's suggestion shows it's my env, not root's.
-- 
john-thomas
------
Times are bad. Children no longer obey their parents, and everyone is
writing a book.
Marcus Tullius Cicero, statesman, orator and writer (106-43 BCE)

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the grlug mailing list