|
From: Richard H. <r.h...@rl...> - 2007-08-08 11:00:07
|
Hans-Bernhard Bröker wrote:
> Richard Henwood wrote:
>> I would like to do something like the following contrived example:
>>
>> gnuplot> dataFile = sprintf("\'< ps aux | tail -%d\'", 20)
>> gnuplot> plot dataFile u 2
>> warning: Skipping unreadable file "'< ps aux | tail -20'"
>> No data in plot
>>
>> as the error copied above indicates, I'm not having much joy!
>>
>> Any suggestions?
>
> You've over-contrived your example. The \' are not useful. Drop them,
> and you should be getting somewhere:
>
>
> dataFile = sprintf("< ps aux | tail -%d", 20)
>
ah! Indeed;
Many thanks for your prompt help in contriving this example; it immediately
revealed the real cause of my problems: using index out of range...
(sheepishly: ...which gnuplot had been trying to tell me all along!)
r,
|