On Friday 08 August 2003 05:46, Dhruba Bandopadhyay wrote:
> Hello
>
> I have a script which syncs in round robin around europe and then emails
> a list of updates and number of updates to me.  Mostly, it works fine
> but there is an oddity that I have not been able to figure out.  The
> script does two checks for updates:
>
> (1) emerge -Dup world > <logfile>
> (2) emerge -Dup `qpkg -I -nc` > <logfile>
>
> Now, given that this is a fully up to date machine both checks should
> produce /a similar/ number of updates.  However, when run every morning,
> the first check produces the correct number of updates but the second
> check run immediately afterwards produces zero updates!  When I run it
> manually it behaves correctly!
>
> I can't think why it would behave differently in a script to manual
> typing into a shell.  The script is attached for your perusal.
>
> Any feedback much appreciated.

Put in a sleep statement of about 10 seconds between step 1 and 2 in your 
script.  I had problems with my cron sync script and the only way to fix it 
was to put in a sleep statement.

See the thread "Fetching updates with cron" for a copy of the script I use.


--
[EMAIL PROTECTED] mailing list

Reply via email to