From mboxrd@z Thu Jan 1 00:00:00 1970 From: "=?ISO-8859-1?Q?Barra_Mac_Math=FAna?=" Subject: Re: cvsimport in cron Date: Tue, 27 May 2008 12:08:02 +0000 Message-ID: References: <17476529.post@talk.nabble.com> <46a038f90805261613v4ad72ddcxe6ee78fa0b54f89e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Tue May 27 14:09:24 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1K0xzG-0002zr-5M for gcvg-git-2@gmane.org; Tue, 27 May 2008 14:09:06 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755523AbYE0MIL convert rfc822-to-quoted-printable (ORCPT ); Tue, 27 May 2008 08:08:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753553AbYE0MIJ (ORCPT ); Tue, 27 May 2008 08:08:09 -0400 Received: from wx-out-0506.google.com ([66.249.82.229]:35034 "EHLO wx-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753370AbYE0MII convert rfc822-to-8bit (ORCPT ); Tue, 27 May 2008 08:08:08 -0400 Received: by wx-out-0506.google.com with SMTP id h29so1919440wxd.4 for ; Tue, 27 May 2008 05:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=blI3FmER1qYvdzIop8nY2H1t4CEDFuhy4swudWuqgm4=; b=gVNNIs2SAC2oKDPWPEgaJ/yrRuKOenmUmKTBN+G8xIOUvl1FTxEM1N0NiWEOfXjvkEt5EK7jyBER4bY4J/13ns59H75vdN1mTULA2WwNw0FK0fEHyr2T+25N1w+elZvFsdWLphhOPqN/sG0vqlBPoAfE10YOZpcr52yFDn6nxCM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NJqZxKS8MrKOiHC4pphnlBgDa4pSNmSZg+LaLO/2Jwy3bu7xgn4b7zuDfRKdDTHRg+zXHX+w4rbIzru+yD6+vgqBcrZZy92TQtNUmg14ZBBjgw5ZiG7acCJso1eTk4zcvsN9nHu6mBhPPxVl6wQxBzjif/TN7Ip+Z8CyqVmB0mM= Received: by 10.70.38.12 with SMTP id l12mr1543538wxl.9.1211890082451; Tue, 27 May 2008 05:08:02 -0700 (PDT) Received: by 10.70.51.9 with HTTP; Tue, 27 May 2008 05:08:02 -0700 (PDT) In-Reply-To: Content-Disposition: inline Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: I've also tried the command like this: git-cvsimport p --no-cvs-direct -vio master CVSMODULE Apparently cvsps has it's own client implementation, so I thought I'd disable that in order to be more sure that it was working in the same way as the normal cvs over ssh update that works fine in cron. Barry. On Tue, May 27, 2008 at 10:45 AM, Barra Mac Math=FAna wrote: > Thanks Martin, > > Nice to know how to log the progress! Good tip to try normal cvs over > ssh, which works fine. > > I wish it was possible to get more verbose output from the git > cvsimport command. The connection refused error seems to me to be > misleading. I would expect at least some output from cvsps but it > doesn't even get to the first step. > > So if everything works at the command line, what significant things > can be different in a cron job? > > I also downgraded to the stable version according to gentoo, so I'm o= n > using 1.5.3.7 now, same result. Unfortunately I might have to give up > soon and ask developers to update their own repositories, as it's > burning up time. > > Will post of course if I find the solution. > > Thanks, > Barry. > > > On Tue, May 27, 2008 at 12:13 AM, Martin Langhoff > wrote: >> On Tue, May 27, 2008 at 6:00 AM, barrymac wrote= : >>> Apologies if this is a standard mistake, I'm not very experienced w= ith cron. >>> I'm trying to run cvsimport commands from within a cron job but it = always >>> returns: >> >> I've done this plenty, so it's known to work. Not sure why it's >> failing in your case. >> >>> I use ssh keys and have tested that they work by using scp within = the >>> script. The script goes as follows: >> >> That's a good start. Have you tried a cvs-over-ssh cvs operation fro= m cron? >> >>> It would also be nice if someone could tell me also how to log the = output. >> >> Just wrap the commandline in >> >> ( $cmd 2>&1) > /tmp/cvsimport.log >> >> HTH, and tell us what the problem was - so the next one to bump into >> it find the answer in the list ;-) >> >> cheers, >> >> >> >> m >> -- >> martin.langhoff@gmail.com >> martin@laptop.org -- School Server Architect >> - ask interesting questions >> - don't get distracted with shiny stuff - working code first >> - http://wiki.laptop.org/go/User:Martinlanghoff >> > > > > -- > I must Create a System, or be enslaved by another Man's > Wm. Blake 1757 - 1827 > --=20 I must Create a System, or be enslaved by another Man's Wm. Blake 1757 - 1827