[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Using SVN with cron?

From: Daniel Becroft <djcbecroft_at_gmail.com>
Date: Mon, 7 Mar 2011 17:45:44 +1000

On Mon, Mar 7, 2011 at 5:35 AM, bimininavels <cl_at_qgenuity.com> wrote:

> I've been struggling all morning with what should be a very simple problem.
>
> I would like to commit and update a svn repository daily using cron. I've
> encapsulated my svn calls into a perl script, which runs the following
>
> ----
> #!/usr/bin/perl
>
> print "To run svn commit\n";
> $thetime=time;
>
> system "cd ~/docs; /usr/bin/svn commit --message '$thetime' \n";
> system "cd ~/docs; /usr/bin/svn info \n";
> ----
>
> The whole thing is >> to a file in my /tmp directory for monitoring.
>
> The script works fine if I run it manually.
>
> In the monitoring file, I see the correct output from svn info after the
> cronjob, but it looks like the "svn commit" never runs. I don't see any
> output
> from it and the revision never changes.
>
> ----
> To run svn commit
> Path: .
> URL: svn://xxremoved
> Repository Root: svn://xxremoved
> Repository UUID: xxremoved
> Revision: 487
> Node Kind: directory
> Schedule: normal
> Last Changed Rev: 487
> Last Changed Date: 2011-03-06 04:42:01 -0800 (Sun, 06 Mar 2011)
> ----
>
> (I do have some file changes there to force a commit)
>
> Does anyone know why svn info would work while svn commit would not?
>
> Thanks,
> - Jonathan
>

Have you read the replies you got when you posted the first time?

http://mail-archives.apache.org/mod_mbox/subversion-users/201103.mbox/%3C201103061145.36661.cl@qgenuity.com%3E

Cheers,
Daniel B.
Received on 2011-03-07 08:46:37 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.