|
|
![]()     |
Running programs in a remote LINUX environment differs from running in windows or on a LINUX based desktop.
ssh tamnun -X -l YOURACCOUNT
if the account name is the same you can drop the -l YOURACCOUNT.
ls .cshrc
If yes (i.e. if you get the file listed) go on to the list of basic commands below.
mv .cshrc.TAMNUN .cshrc
Then
run the command source .cshrc
and every time after that when you logon, you will get a nice prompt like:

which helps you know which window is the right one to use. You will also have paths to your files sorted out. (The illustrative prompt here is on phelafel, since TAMNUN had not arrived when this was written; and its shows how the prompt changes when you change your directory e.g. from ~phr76ja to ~phr76ja/public_html.)
Now for the important stuff!
scp course01@aluf:surlin.f .
and using the same password as given for your account on aluf. The period following the space at the end of the command line is a short way to say ``put the copied file in the current directory''. (If you are taking the course alone, you will need to scp it after downloading from the web onto some other computer - say one called YOURMACHINE - and then either sending it from YOURMACHINE with winscp or copying into ALUF from say YOURACCOUNT@YOURMACHINE by writing on ALUF scp YOURACCOUNT@YOURMACHINE:surlin.f . )
f77 surlin.f -o surlin.ex
where the -o means make a final executable file called surlin.ex
and you should change this if you are compiling a different file.
This is about as easy as it gets, and for more complex programs its good to work with makefiles, which are explained here. There are also many other compilers
which will be discussed in detail in a more advanced setting.
In brief, documentation about Intel compilers is at: http://aluf.technion.ac.il/doc/Intel/C.htm http://aluf.technion.ac.il/doc/Intel/Fortran.htm icc -V Intel(R) C Compiler XE for Linux, Version 12.1.1.256 icpc -V Intel(R) C++ Compiler XE for Linux, Version 12.1.1.256 ifort -V Intel(R) Fortran Compiler XE for Linux, Version 12.1.1.256
surlin.ex &
Your next page is editing and managing files in a LINUX environment.
NANCO/TAMNUN users and Technion Physics Department graduate students may contact Dr Joan Adler (phr76ja_at_tx.technion.ac.il) with further questions, OTHERS ARE WELCOME TO USE THE SITE ``AS IS''.