IDL <<EOF print,'this is a script' exit EOF
pro intest read, one read, two print, one, two end
1 2
intest exit
cmd> idl callintest < input.dat
% Compiled module: INTEST. 1.00000 2.00000