Welcome to iraf.net Wednesday, May 01 2024 @ 09:09 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Host Script Help & Question
   
accrama
 01/22/2014 03:48PM (Read 1046 times)  
+----
Newbie

Status: offline


Registered: 01/21/2014
Posts: 4
Hi everyone. I would really appreciate your help.
I am doing a very simple host script to run QPHOT.
I am having trouble loading packages.
(Running IRAF V 2.15.1a in MAVERICKS 10.9.1 in MacBook Pro)

The script asks for all the packages needed for QPHOT.
When the script finishes running, I can do an EPAR QPHOT and it will give an error:

ERROR: task `qphot' not found
called as: `eparam (qphot)'


I then check and the first package in the list in the script was loaded the but the others weren't.

If I add the EPAR QPHOT line directly to the script, then when it finishes running, the IRAF terminal window is set in the EPAR environment of QPHOT. What is going on here?

I present the simple script:

#!/iraf/iraf/bin.macintel/ecl.e -f
#set home = "/iraf/iraf/unix/hlib/"
#set imdir = "/tmp/mario/"
#set uparm = "home$uparm/"
#set userid = "mario"
#set tfred = "/iraf/iraf/TFRED2/"
#set lacos = "/iraf/iraf/"
#set ctio = "/iraf/iraf/extern/ctio/"
#set imtype = fits
#stty xgterm # set terminal type
#clpackage
noao # load TFRED package
digiphot
apphot
epar qphot



Your help is greatly appreciated.

 
Profile Email
 Quote
fitz
 01/22/2014 05:39PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

Host CL scripts like this must contain a 'logout' command as the final command if you want the script to exit cleanly, otherwise the final command is your 'epar' and once you quit that interactively you are left in the CL.

The thing to remember about host scripts like this is that they generally don't have a login.cl file in the current directory that can be used to define a standard environment, and so all the package loading and environment settings have to be done in the script itself. The other caution is that the current implementation of this essentially acts as a redirection (e.g. as if you did "cl

 
Profile Email
 Quote
   
Content generated in: 0.05 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login