Welcome to iraf.net Friday, April 19 2024 @ 09:52 AM GMT


 Forum Index > Help Desk > IRAFNet
 EXTERNAL SCRIPT
   
andycaesar
 05/07/2008 10:47AM (Read 5119 times)  
+----
Newbie

Status: offline


Registered: 05/07/2008
Posts: 1
Hi Guys 8)
how can I run IRAF and execute an IRAF script in background
using the borne-shell? I'm using another C package an I would like
pass some value to IRAF script and after the calculation come
back to the previous package.Cheers
Andy

 
Profile Email
fitz
 05/07/2008 10:47AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The answer depends on exactly what the script does: In general this sounds like a use for the so-called "#!cl" scripts where you write the script so it is a standalone task. This allows you to pass in values from the command-line but also requires that you do some setup in your environment and in the script to be sure you have everything loaded (see a similar thread in the last day or two, as well as http://iraf.noao.edu/iraf/web/new_stuff/cl_host.html for additional documentation and examples). Since #!cl scripts are host commands, they can be run in the background like anything else. The other ways to run tasks from the shell are to use redirection (i.e. "cl < script.cl") if your script is simply a list of commands and not a procedure script, or if you are running a compiled task then there are ways to execute the binary directly and pass in the parameters (see https://iraf.net/faqman/index.php?op=view&t=117). It is more cumbersome to pass in values in this case but it can still be done. Try the #!cl and post back if you still have questions.Cheers,
-Mike

 
Profile Email
   

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