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

Re: Hook scrip - post-commit

From: Enrico Straube <enrico.straube_at_cbb-software.com>
Date: 2005-02-21 11:52:16 CET

On Saturday, February 19, 2005, Christopher Ness wrote:
> On Fri, 2005-18-02 at 10:58 -0600, kfogel@collab.net wrote:
>> Enrico Straube <enrico.straube@cbb-software.com> writes:
>> > | /usr/local/bin/backup-since-rev.pl "$REPOS" "$REV"
>>
>> Maybe
>>
>> http://subversion.tigris.org/faq.html#hook-environment

> Like Karl said, I think your perl script is not finding the perl
> interpreter.

> Try putting a /usr/bin/perl out front. Or wherever your perl binary is.

yes that helped a little bit. Can I open a file for reading in the
hook-script like this?

,----- [ ]
| ...
| $last_backup_file = "$backup_path/$sicher/last\_backed\_up";
| $next_backup_file = "$backup_path/$sicher/hook-incremental-backup.dump";
|
|
| if (!open(INPUT, "$last_backup_file"))
| {
| print ("Can't open file: $last_backup_file\n");
| exit 1;
| }
| $previous_youngest = <INPUT>;
| chomp $previous_youngest;
| close INPUT;
| ...
`-----

the file really exist and is chmodded like this:
-rw-rw-rw- 1 root www 2 Feb 21 09:17 /export/backup/svn/repos/vw/test/workshop/last_backed_up

-- 
Regards,
Enrico Straube
mailto:enrico.straube@cbb-software.com

  • application/pgp-signature attachment: stored
Received on Mon Feb 21 11:54:36 2005

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.