On Wed, Jun 27, 2018 at 01:02:56PM -0700, Stan Gorodenski stanlep@commspeed.net [LINUX_Newbies] wrote:
> I installed a program called IRAF. It came back and said:
> Congratulations! IRAF has been successfully installed on this system.
>
> It then said:
> To begin using IRAF you can simply type
> % source ~/.login
> % cl
>
> However, when I executed the first line, i.e. source ~/.login, it came
> back and said:
> -bash: /home/stanlepast/.login: line 6: syntax error: unexpected end of
> file.
>
> The .login file has the following statement:
> # add iraf setup commands
> if ( -e /home/stanlepast/.iraf/setup.csh) then
> source /home/stanlepast/.iraf/setup.csh
> endif
It seems to assume that you are using a C based shell, usually tcsh. That
has different syntax than bash. Depending upon your distribution, you
should be able to install csh or tcsh, then change to that shell to run it.
I don't know C shell at all, I would guess that the -e means exist, that
is, if this file exists, then source it.
--
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6
Posted by: Scott <scottro@nyc.rr.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (2) |
No comments:
Post a Comment