[SLE] Using cvs from crontab
Anyone using cvs from crontab? I have a script which updates from the KDE ftp server which works fine from the command line, but from a crontab (my own) I get this error: cvs [update aborted]: connect to anoncvs.kde.org:2401 failed: Connection refused I can't see any obvious reason why. Does cvs require any envvar except CVSROOT? I'm using the -d switch so I don't think that's it. I've done the cvs login and my .cvspass and .cvsrc files are present and correct. Is there any reason why I should need to do the cvs login from the crontab script? Does anyone know what I've missed? -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
Derek Fountain wrote:
Anyone using cvs from crontab? I have a script which updates from the KDE ftp server which works fine from the command line, but from a crontab (my own) I get this error:
Hmm, updating via cvs from an ftp site? This can't work - CVS is a completely different service/protocol. I guess you want to update/check out sources from a cvs server:)
cvs [update aborted]: connect to anoncvs.kde.org:2401 failed: Connection refused
I can't see any obvious reason why. Does cvs require any envvar except CVSROOT?
CVS supports more environment variables, but does not require a single one of them (cf. man cvs section ENVIRONMENT). Setting CVSROOT is only one (error-prone) alternative to passing command options, primarily for OSes/shells which have restrictive limitations on command line lengths.
I'm using the -d switch so I don't think that's it. I've done the cvs login and my .cvspass and .cvsrc files are present and correct. Is there any reason why I should need to do the cvs login from the crontab script? The cvs login which sets up ~/.cvspass, is required to be performed under the same UID as the cronjob will run.
Does anyone know what I've missed?
1. Make sure to have done the cvs login as the user which runs the cronjob rsp. that the .cvspass is in this user's HOME (nobody, root, user?) or copy your working .cvspass into this user's HOME. 2. Make sure to cd to the root of your checked out cvs tree. Other possible reasons could be * a firewall not letting pass through CVS connections (Several sysadmins disallow CVS) * the CVS server being in trouble (broken, misconfigured, overloaded, down) * dial-out connections (modem etc.) timing out because of slow cvs connections (inactivity/overloaded CVS servers). I would guess, if it's not the UID problem, then the cvs server is in trouble. Ralf -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
from the KDE ftp server which works fine from the command line, but from a crontab (my own) I get this error: Hmm, updating via cvs from an ftp site?
Sorry, that's a typo. :-}
The cvs login which sets up ~/.cvspass, is required to be performed under the same UID as the cronjob will run.
Confirmed that. All OK.
2. Make sure to cd to the root of your checked out cvs tree.
Have done.
Other possible reasons could be * a firewall not letting pass through CVS connections (Several sysadmins disallow CVS) * the CVS server being in trouble (broken, misconfigured, overloaded, down) * dial-out connections (modem etc.) timing out because of slow cvs connections (inactivity/overloaded CVS servers).
I would guess, if it's not the UID problem, then the cvs server is in trouble.
The script works fine if I run it from a shell prompt. The
firewall and CVS server are both OK. I need to use
'runsocks' to get past the the firewall. Perhaps the problem
is that SOCKS5 doesn't work quite right from ----------- oh,
$#!+....
It's just dawned on me. I'm not exporting my SOCKS5_SERVER
variable so it's visible from the cron job.
participants (2)
-
corsepiu@faw.uni-ulm.de
-
fountai@hursley.ibm.com