IDL script

来自Shiyin's note
跳到导航 跳到搜索
IDL <<EOF
print,'this is a script'
exit
EOF
  • intest.pro contains:
pro intest
 read, one
 read, two
 print, one, two
end
  • input.dat contains:
 1
 2
  • callintest.pro contains
 intest
 exit
  • To run:
cmd> idl callintest < input.dat 

% Compiled module: INTEST. 1.00000 2.00000