-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It's probably the environment that cron runs in that's different.  Check
to make sure that everything matches between cron's env and your
command-line env.  You may need to "man cron" and "man env" to help you.

Brian wrote:
 > I was running my script directly from cron around 01:00am every morning,
> and noticed that when ever I tested the script from the command line it
> would never ever fail. Chnaged cron to run my script every 15 minutes
> (long enough to allow the previous backup to complete) and each one
> would fail. So I installed the atd daemon and tried having cron send the
> command to start my script to at, like so:
> 
> echo "mydirvish.sh" | at now
> 
> IMHO the usual way to use at (I do it in some other placed on my VDR
> server). Well, since I changed that not a single failure at all. I dont
> know what caused the problem, but it seems that the machine would run
> the script OK, then something would fail, and from then on until the
> next reboot every backup would fail. As the core was from Perl I assume
> that or something it relied on was screwed. But running via at seems to
> solve the problem completely.
> 
> I still need to see if I can find someone who is interested in looking
> at the cores I have.
> 
> Thanks again for all the tips and help.
> 
> Cheers Brian
> 
> 
> 
> 
> _______________________________________________
> Dirvish mailing list
> [email protected]
> http://www.dirvish.org/mailman/listinfo/dirvish
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBRiZhVJ76rTZSI4F7AQJkxwf/To9x42v6Y5cgWfw23axJVAk15Du61GNO
yGWiuQclDvcCK9WEwnwXYH7aJtsD6+sd2WhkhcCiO3Ru000/F69w1I0NGjc+Z5sq
TwSy0qgXif7MzpOTHV/1f4cbrtYSKTkq+lO9yFWFH/hTdrkMibkzmqXRhvjzh84j
MoizNIDF3IeyKBoxL605ZuxOfQpCDByIlaSOz6ww1p5ibGUBhJd2mPdVKH4pdgq+
zuFyMWyhxFXaJ4wjJueaIhbkr5aoN2L/P1vrdQwpyrkdlVQLamlLDpy1TIASEiR8
6f/dATQVUHe2aTMpWq7VAF6/MT1vQVAPXWetm3MLmhEA4F7dQ7G3hg==
=eVSo
-----END PGP SIGNATURE-----
_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to