Welcome to iraf.net Thursday, April 25 2024 @ 12:29 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Launch ecl with arguments
   
jmiguel
 11/11/2014 07:21PM (Read 1608 times)  
+----
Newbie

Status: offline


Registered: 12/12/2007
Posts: 14
Hello all:

anybody know if it is possible to launch iraf (ecl) with an .cl script file as an argument from the command line. For example, from a xterm:

myuser@mycomputer:~\$this->_split2($m[0]) ecl

I know you can run .cl scripts from IRAF shell, but I'd like to run a .cl script from the bash shell.

Any idea ?

Thanks,
JoseMiguel

 
Profile Email
 Quote
jmiguel
 11/11/2014 07:28PM  
+----
Newbie

Status: offline


Registered: 12/12/2007
Posts: 14
Upss, I mean :

myuser@mycomputer:~\$this->_split2($m[0]) ecl

 
Profile Email
 Quote
fitz
 11/18/2014 06:28AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I assume your post was truncated and that the '<' sign got cut off, and that you are trying to run a script as

% ecl < script.cl

See the other post about running a script like this under Yosemite and problems caused by the redirection. Note that when you write a script as a #!cl script (see http://iraf.noao.edu/iraf/web/new_stuff/cl_host.html) you can essentially create a host command out of the script but it will also be reading the $HOME/.iraf/login.cl file so the problem with the 'stty xgterm' may still apply. Otherwise, you can run scripts like this from either Bash or C-shells.

Does this answer your question?

 
Profile Email
 Quote
   
Content generated in: 0.13 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