SVN is extraordinary for these types of things. Combining Peter Briggs and Bill Scott's suggestion, perhaps one ideal solution would be SVN support built into ccp4i.

However, in the meantime or that never happens, here is a script that might serve as a template if:

#! /bin/csh -f

cd $HOME/ccp4i
svn update
/usr/local/bin/ccp4i
svn add * --force
svn commit
# end of script

Its that simple. Commit is called when ccp4i exits, even if abnormally. The only time commit isn't called is when the shell terminates abnormally. This script would be named "ccp4i" and dropped into your ~/bin. I give ~/bin precedence over all other directories in my $path specification for these reasons. Alternatively, it could be aliased. In this way, svn would be more-or-less transparent except for commit's asking for commit notes. These can be circumvented if you really want--but more notes are always better than less notes.

If you have an OSX box with good bandwidth, see: 
http://preview.tinyurl.com/ysb78w

That is a tinyurl to a tarfile with instructions to get an svn daemon properly configured on OSX.

James


On Mar 7, 2008, at 5:38 AM, William Scott wrote:

Syncing directories with unison (use the same version of the program on all computers) or rsync can help. Lately I've been using svn, which is I think the best way to deal with this. Setting up a server on linux is probably easiest. You can do this with any type of file, by the way, it doesn't have to be ascii.


William G. Scott

contact info:  http://chemistry.ucsc.edu/~wgscott




On Mar 7, 2008, at 3:57 AM, Derek Logan wrote:

Hi everyone,

I've been working on a project using CCP4i on two separate computers in parallel and now unfortunately have jobs spread over the two locations. I would now like to consolidate these. Some of the new jobs on one computer will have the same run number as different ones on the other. Is there any convenient way to merge the projects? I guess the answer is no, or else the question would have been asked and answered already ;-)

Thanks
Derek
--
Derek Logan             tel: +46 46 222 1443
Molecular Biophysics    fax: +46 46 222 4692
Lund University         mob: +46 76 8585 707
Box 124, Lund, Sweden


--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA  90095

http://www.jamesstroud.com

Reply via email to