comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » SHELL+IDL bridge.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
SHELL+IDL bridge. [message #92896] Fri, 18 March 2016 04:52 Go to previous message
Sapna Mishra is currently offline  Sapna Mishra
Messages: 66
Registered: December 2015
Member
Hello all,

I have a bash script , in which I want to read a file using IDL

IDL COM: ftab_print,'FORS1_B_GRS_600V_94_GG375_30.fits',[1,5,6],texto ut='tt.txt'

then I want to run these bash commands inside my script:

disp=( $(awk '{print $1}' ./tt.txt) )

start=( $(awk '{print $2}' ./tt.txt) )

end=( $(awk '{print $3}' ./tt.txt) )

Also I want to call IDL functions in this script. Anyone can help me out?

when I am running my script: bash script.bash
i get error:


% Syntax error.
bash: -c: line 0: unexpected EOF while looking for matching `)'

My all script:

#!/bin/bash
idl <<!here
.rnew CLASSIFICATION.pro
.rnew NEWFILE.pro

ftab_print,'FORS1_B_GRS_600V_94_GG375_30.fits',[1,5,6],texto ut='tt.txt'

spawn, 'disp=( $(awk '{print $1}' ./tt.txt) )'

spawn, 'start=( $(awk '{print $2}' ./tt.txt) )'

spawn, 'end=( $(awk '{print $3}' ./tt.txt) )'

spawn, 'esorex fors_science --dispersion=${disp[1]} --resp_fit_degree=2 --startwavelength=${start[1]} --endwavelength=${end[1]} sci.sof'

exit
[Message index]
 
Read Message
Read Message
Previous Topic: Take values from several arrays with nearest neighbour matching
Next Topic: error in cgWindRose code

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:30:21 PDT 2025

Total time taken to generate the page: 0.00395 seconds