Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
rai [options for
ai]
In order to use rai a programmer must have an account on aips2.nrao.edu and it must be set up for ssh access from the local host via a suitable entry in the .ssh/authorized_keys file (.ssh/authorized_keys2 for ssh2 based access). The programmer must also have an up-to-date AIPS++ workspace on aips2.nrao.edu and it must be rooted at $HOME/aips++ (see mktree (p)). Visit the Using SSH page for more details on using ssh in AIPS++.
AUID="<remotename>"
The .ssh/authorized_keys (.ssh/authorized_keys2 for ssh2) file for the remotename account on aips2.nrao.edu should have an entry for each machine you may want to use remotely.
you will need to run ssh-keygen and put the generated key in the .ssh/authorized_keys on aips2.nrao.edu
If a checkin fails the error message from ci will be visible on stderr but rai will not catch an error return. The only course of action would be to log in to aips2.nrao.edu and clean up manually.
For this reason, rai never deletes files from the local workspace but simply removes the write permission from them (unless invoked with the -l option) - even if the checkin failed. It is left to the programmer to decide whether the checkin succeeded and delete them explicitly.
rai does delete files from the aips2.nrao.edu workspace if the checkin succeeded.
enter description, terminated with single '.' or end of file:
you must terminate with a single ``.'' and not use ^D
.
The reason is simply that ^D
means ``end-of-file'' to the
ssh as well as ci, so if you use ^D
when
checking in multiple files ci will not accept change messages
for succeeding files.
0
: success (returned from ai_master)
1
: initialization error, no checkin
rai -au Foo.ccwould check in Foo.cc from the current directory into the corresponding AIPS++ master repository, updating the slave and plain-text copies in the process. The copy of Foo.cc in the current directory would not be deleted but it's write permission would be removed. If the checkin succeeded it would be appropriate to manually delete the file
rm Foo.ccIf the checkin failed then it would be necessary to log in to aips2.nrao.edu and recover manually.
The manual page for ci(1), the RCS checkin command.
The GNU manual page for gzip(1).
The unix manual page for ftp(1).
The unix manual page for ping(1).
The unix manual page for ssh(1).
ai (p), AIPS++ code checkin utility.
ao (p), AIPS++ code checkout utility.
au (p), AIPS++ code update utility.
mktree (p) create AIPS++ directory hierarchy.
rao (p), invoke ao remotely via ssh(1).
rau (p), update AIPS++ sources from the master via ssh(1).