LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2003, 03:07 PM   #1
cleaner416
LQ Newbie
 
Registered: Sep 2003
Posts: 11

Rep: Reputation: 0
CVS and cron jobs


Greetings ...

I am trying to do some CVS checkouts and commits automatically with cron jobs.

The jobs are bash scripts run as root that call commands like 'sudo -u cvsuser cvs commit'

When I run the scripts from the command line (as root) everything is groovy, but the cron job outputs msgs like

cvs checkout: No CVSROOT specified! Please use the `-d' option
cvs [checkout aborted]: or set the CVSROOT environment variable.


Any ideas? The environment variables have been set up for root and cvsuser...


TIA!
 
Old 09-18-2003, 05:36 PM   #2
Backslash
LQ Newbie
 
Registered: Apr 2003
Location: Belgium
Distribution: Red Hat 9.0 (Shrike)
Posts: 23

Rep: Reputation: 15
You have to set the CVSROOT variable,

typically doing this just means defining the environment variable :

$ export CVSROOT=roto:host.domain.tld:/cvs-home-directory

if you use extssh as protocol, chances are that you'll also have to define CVS_RSH like this :

$ export CVS_RSH=ssh

Hope it helps

Backslash
 
Old 09-18-2003, 07:21 PM   #3
cleaner416
LQ Newbie
 
Registered: Sep 2003
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks! I did have the env variables definbed as you describe, and the funny thing was that the scripts ran fine from the command line. I solved the problem by just adding the -d /cvs_root_dir to the cvs commands in the script.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS and Cron jobs dgermann Linux - Networking 9 07-05-2005 11:38 PM
Cron Jobs XaViaR Linux - General 1 06-23-2005 07:57 PM
cron jobs working2hard Linux - Software 0 07-28-2004 06:31 PM
CRON Jobs scottpioso Linux - Software 63 11-28-2003 07:45 PM
cron jobs Zyanid Linux - Software 0 08-27-2002 06:10 AM


All times are GMT -5. The time now is 10:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration