I sorted out the gaia and the sofi problem and I think the issue was as Tim said - I could run gaia.csh from the command line - but without the autoastrometry button at all - I think another user has mentioned this. But I was sourcing /star/etc/login and I think this may have been resetting something, so that commandline functions worked, but and internal calls - like autoastrom or photm in gaia didn't. I suspect the sofi script was a similar issue. Thanks again for all your help. -- Dr Sarah L Casewell Email: [log in to unmask] Xray and Observational Astronomy Office: S1 Department of Physics and Astronomy Phone: +44 (0)116 2523577 University of Leicester Leicester LE1 7RH UK On Thu, 14 Feb 2008, Peter W. Draper wrote: > On Wed, 13 Feb 2008, Sarah Casewell wrote: > >> Thank you so much! >> That appears to have sorted everything - I'll try to put everything else >> back in my login/cshrc files to see if I can find what is screwing it up. > > Hi Sarah, > > that's good to hear, did this also sort out your SOFI problem? I'm > guessing so. > > Cheers, > > Peter. > >> On Wed, 13 Feb 2008, Peter W. Draper wrote: >> >>> On Wed, 13 Feb 2008, Sarah Casewell wrote: >>> >>>> I have now tested the message relay, which works. Autoastrom works on the >>>> command line, but not through gaia as it tells me >>>> >>>> Error starting ADAM relay'MessageRelay.pl':IO::Pipe:Cannot exec: No such >>>> file or directory at >>>> /star/Perl/lib/perl5/site_perl/5.8.8/Starlink/AMS/Core.pm line 177 at >>>> /star/Perl/lib/perl5/site_perl/5.8.8/Starlink/AMS/Init.pm line 366 >>>> >>>> and then it hangs. >>>> >>>> My starperl is set correctly, my starlink_dir, autoastrom_dir and >>>> LD_LIBRARY_PATH are all set as instructed. >>>> >>>> Do you have any other ideas for me to try? >>> >>> Not many, but here's one that could explain both your mysteries. If your >>> $HOME/.cshrc file is changing the values of either PATH or LD_LIBRARY_PATH >>> then things ran from scripts could give different behaviours to those ran >>> from the command-line. >>> >>> Try temporarily changing your .login and .cshrc files to just have the >>> following content: >>> >>> .cshrc: >>> ------- >>> setenv STARLINK_DIR /star >>> source $STARLINK_DIR/etc/cshrc >>> >>> .login: >>> ------- >>> setenv STARLINK_DIR /star >>> source $STARLINK_DIR/etc/login >>> >>> and see if that helps (you need both STARLINK_DIR definitions so that login >>> shells, which run .cshrc first, are also correctly setup). >>> >>> Cheers, >>> >>> Peter. >>> >>> >> > >