git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "John J. Franey" <jjfraney@gmail.com>
To: "Michael J Gruber" <michaeljgruber+gmane@fastmail.fm>,
	"Barra Mac Mathúna" <barrymac@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: cvsimport in cron
Date: Tue, 27 May 2008 09:33:27 -0400	[thread overview]
Message-ID: <1211895207.7877.4.camel@isidore.myhome.westell.com> (raw)
In-Reply-To: <g1gq3u$jb$1@ger.gmane.org>

On Tue, 2008-05-27 at 13:08 +0200, Michael J Gruber wrote:
> Barra Mac Mathúna venit, vidit, dixit 27.05.2008 12:45:
> > 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?
> 
> The environment! Put "env" in your cron job and compare the output to 
> "env" on the command line. cvs or cvsps may be in $PATH on the command 
> line but not in cron, or $PERL5LIB might be different.
> 
> Cheers,
> Michael
> 

Great suggestion!

I am also having this problem.  To debug, I inserted env as you
suggested.  (Doh, why didn't this occur to me weeks ago?).  I compared
the output of cron and login-shell runs.

So what is the critical env diff between cron run and login run?

The answer is:  CVS_RSH=ssh

Be sure to export.

Thanks.
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2008-05-27 13:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-26 18:00 cvsimport in cron barrymac
2008-05-26 23:13 ` Martin Langhoff
2008-05-27 10:45   ` Barra Mac Mathúna
2008-05-27 11:08     ` Michael J Gruber
2008-05-27 11:31       ` Martin Langhoff
2008-05-27 13:33       ` John J. Franey [this message]
2008-05-27 15:31         ` Barra Mac Mathúna
2008-05-27 12:08     ` Barra Mac Mathúna

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1211895207.7877.4.camel@isidore.myhome.westell.com \
    --to=jjfraney@gmail.com \
    --cc=barrymac@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=michaeljgruber+gmane@fastmail.fm \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).