Welcome to iraf.net Friday, March 29 2024 @ 01:44 PM GMT
Giorgio |
07/10/2014 10:14AM (Read 1785 times)
|
|
|
Status: offline
Registered: 07/09/2014
Posts: 4
|
Why can't I use Unix commands such as "ls" or "pwd" in my IRAF session? Do I need any particular packages not installed?
|
|
|
|
fitz |
07/10/2014 05:08PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
These are declared as "foreign" tasks in the login.cl file and are executed automatically in a spawned shell, e.g. as if you did "cl\$this->_split2($m[0]) !ls" to escape the CL. If these are found then be sure you started with a login.cl file, otherwise there may be an error in your .cshrc/.bashrc file preventing the escape shell from starting properly.
Note there are IRAF system equivalents for most of these commands as well, e.g. DIR and PATH in the case of the commands you gave. What error message are you seeing to think these aren't available?
|
|
|
|
Giorgio |
07/10/2014 08:21PM
|
|
|
Status: offline
Registered: 07/09/2014
Posts: 4
|
OK!!! PROBLEM RESOLVED!!!!
You were right: the problem was the login.cl file!!! I started IRAF in a directory that didn't contain this file. So when I digited pwd or ls, he told me "ERROR: task not found". Instead, the commands with the ! simbol worked well. So the problem wasn't in my tcsh shell.
Other question: my IRAF works well only in an xgterm. How can I automatically change my xterm in an xgtern when I start IRAF?
Really thanks for your essential help!!!
Giorgio
|
|
|
|
fitz |
07/10/2014 09:01PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
When you type 'cl' you'll start IRAF in whatever terminal you are using: You set the default terminal type when doing a MKIRAF initially but that just means you're telling IRAF what terminal type you are using, not that IRAF should start that terminal for you. If you want to use an XGterm you need to start it yourself and then login to iraf from there.
In v2.16.1 there is an 'iraf' alias defined that essentially does an
xgterm -e cl
to start the CL in a new XGterm window, but simply typing 'cl' will just start the CL in the terminal you use.
|
|
|
|
Giorgio |
07/10/2014 09:42PM
|
|
|
Status: offline
Registered: 07/09/2014
Posts: 4
|
Ok, thank you very much for your immediate and efficient support!!!
|
|
|
|
| |
|
Content generated in: 0.15 seconds |
|