|
From: Ethan M. <merritt@u.washington.edu> - 2006-04-17 21:54:10
|
On Monday 17 April 2006 02:05 pm, Mojca Miklavec wrote: > I'm sorry for a stupid question (probably not the most appropriate for > this list, but I didn't find the answer yet): how can I ignore > "pause"? I would like to call gnuplot from an external program (with > "set terminal whatever", has to produce a couple of graphics and then > exit quitely) and "I can't afford to hire a robot" to keep pushing > "enter" on pauses triggered with "pause -1"? Pause is good for > interactive terminals, but not when writing images into a file. This is a strange question, because "pause -1" should return immediately if the input is from a script. How, exactly, are you feeding your commands to gnuplot? And if you are piping the commands from an external program, why is it listening to the keyboard even if you *were* to hire a robot key-presser? Off-the-wall suggestions, since I don't really understand how your problem is created. 1) Don't put any pause statements in your automated scripts to begin with 2) sed -e 's/pause -1//' < script | gnuplot 3) gnuplot script < /bin/true -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle WA |