Viewing a plot under bash? [message #62800] |
Sun, 05 October 2008 15:40 |
eyuchen
Messages: 8 Registered: February 2008
|
Junior Member |
|
|
Hi all,
I am using a binary file which has nothing to do with IDL to generate
results of simulation.
After the simulation is done, I would like to view them using IDL.
However, I am just too
lazy to key in things like:
(idl
readcol, blahblah
plot, blahblah...)
each time I run the simulation binary file.
Therefore, I am trying to write a bash script that calls IDL plot
functions. Here is what I tried:
<view.sh>
#!/bin/bash
idl<<eof
readcol,'result.dat',format='d,d',a,b
plot,a,b
eof
# <end of view.sh>
It seems that the script is running, *but* I was never able to view my
data because the
plot window was closed right after it was generated!
I tried to insert a "stop" after "plot,a,b" and it did not work
either. IDL returns:
% Stop encountered: $MAIN$
and closed the window--exited as usual. (i.e., did not give me the
opportunity to enter .cont)
Any suggestions?
|
|
|