Re: Script runs manually, but cron fails

2009-07-27 Thread J Kenneth King
Bryan writes: > I have a backup script that runs fine when I run it manually from the > command line. When I run it with cron, the script stops running at > random points in the source code. > > The script calls rsync with the subprocess module, which in turn uses > ssh to backup files from a bo

Re: Script runs manually, but cron fails

2009-07-27 Thread Bryan
On Jul 24, 2:11 pm, Bryan wrote: > I have a backup script that runs fine when I run it manually from the > command line.  When I run it with cron, the script stops running at > random points in the source code. > > The script calls rsync with the subprocess module, which in turn uses > ssh to back

Re: Script runs manually, but cron fails

2009-07-24 Thread Emile van Sebille
On 7/24/2009 2:11 PM Bryan said... The script runs fine in my bash shell, what could cron be doing to interfere? It's likely environmental -- make sure you're starting with the same path, etc. Sometimes I'll create a sell script by env'ing to a bash script file and append the actual command

Script runs manually, but cron fails

2009-07-24 Thread Bryan
I have a backup script that runs fine when I run it manually from the command line. When I run it with cron, the script stops running at random points in the source code. The script calls rsync with the subprocess module, which in turn uses ssh to backup files from a box on my lan. It also uses