Great! It works, thank you!
On Wed, Nov 3, 2010 at 5:02 AM, Thomas Sefzick <t.s...@fz...>wrote:
>
> use 'system' instead of '!':
>
> system "vi ".f1
>
>
> bsmile wrote:
> >
> > Hello,
> >
> > I am trying to do something like this
> >
> > s=1
> > f1='../aaa/bbb_' . s . 'i.hist'
> > !vi f1
> > p f1 u 1:2 w l
> >
> > The purpose to doing that is to see what's in the file f1 before drawing
> > it
> > (for debugging purpose). However, it seems vi takes f1 as the file name,
> > instead of taking aaa/bbb_1i.hist as the file.
> >
> > Any idea how to deal with this?
> >
> > Thanks,
> > Jon
> >
> ------------------------------------------------------------------------------
> > Achieve Improved Network Security with IP and DNS Reputation.
> > Defend against bad network traffic, including botnets, malware,
> > phishing sites, and compromised hosts - saving your company time,
> > money, and embarrassment. Learn More!
> > http://p.sf.net/sfu/hpdev2dev-nov
> > _______________________________________________
> > gnuplot-info mailing list
> > gnu...@li...
> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/how-to-execute-OS-command-using-gnuplot-defined-variables-tp30118670p30121253.html
> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Achieve Improved Network Security with IP and DNS Reputation.
> Defend against bad network traffic, including botnets, malware,
> phishing sites, and compromised hosts - saving your company time,
> money, and embarrassment. Learn More!
> http://p.sf.net/sfu/hpdev2dev-nov
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|