Cannot get local task to be loaded at IRAF startup
Linas Petras wrote on Apr 21, 2009
I have a simple question. If I define a local task and put it into the loginuser.cl file, I don't see it in the main menu when IRAF prints the login screen, yet if I define the task directly at the ECL> it appears to load and I can see it at the main menu.
I get no errors when I have the task defined in the loginuser.cl file.
The task is defined as follows in the loginuser.cl file
task $foo = /home/xxx/iraf/foo/foo.cl
and if I type this in at the ECL prompt IRAF recognizes the task without error.
What am I doing wrong . :cry:
Linas
I get no errors when I have the task defined in the loginuser.cl file.
The task is defined as follows in the loginuser.cl file
task $foo = /home/xxx/iraf/foo/foo.cl
and if I type this in at the ECL prompt IRAF recognizes the task without error.
What am I doing wrong . :cry:
Linas
Mike Fitzpatrick wrote on Apr 21, 2009
Tasks defined in the loginuser.cl file go into the 'user' package, what you see at the login screen is the main 'cl' package. Use the cmd
to list the contents of the user package. Note that if you'd declared the task after loading e.g. the onedspec package it would appear in that menu, so task declarations go into the current package, not strictly the 'cl' package.
-Mike
cl> ?userto list the contents of the user package. Note that if you'd declared the task after loading e.g. the onedspec package it would appear in that menu, so task declarations go into the current package, not strictly the 'cl' package.
-Mike
Linas Petras wrote on Apr 21, 2009
Hi Mike,
OK, thanks for the clarification...
Linas
OK, thanks for the clarification...
Linas
Last post on Apr 21, 2009