|
From: Nalin G. <nal...@ya...> - 2006-09-19 14:24:00
|
Hello, I am using gnuplot for first time. My requirement is to display a Dynamic graph displaying monitored Traffic throughput or CPU Performance for example. I wish to learn, is it possible that web server streams some data (X,Y) and web browser invoke gnuplot to display this dynamic data either in new xtern/window/or portion of same html page. I came across this site: http://skuld.bmsc.washington.edu/~merritt/gnuplot_test.html Is there more similar documents ? I have few doubts and could not get result as per this site. Is this feature available in current release ? regards, - nalin --------------------------------- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW |
|
From: <br...@ph...> - 2006-09-19 17:42:15
|
Nalin Gupta wrote: > I wish to learn, is it possible that web server streams some data (X,Y) > and web browser invoke gnuplot to display this dynamic data No. There are very serious security implications that forbid this kind of setup. Running programs in or from your web browser requires completely different techniques than those used by desktop applications (like gnuplot). For that kind of job you need Java. |
|
From: Richard H. <r.h...@rl...> - 2006-09-20 10:36:53
|
Hans-Bernhard Bröker wrote: > Nalin Gupta wrote: > >> I wish to learn, is it possible that web server streams some data (X,Y) >> and web browser invoke gnuplot to display this dynamic data > > No. There are very serious security implications that forbid this kind > of setup. > > Running programs in or from your web browser requires completely > different techniques than those used by desktop applications (like > gnuplot). For that kind of job you need Java. > Hi Nalin and Hans-Bernhard, The short answer, as Hans has stated is: NO. The slightly longer answer is: why would you want to do this? there maybe a better way to complete your goal - serverside gnuplot image generation? The longer answer is: Maybe, First, you could configure your webserver to send a customised mime type when your stream is selected by your browser. You could then configure your browser to delegate activity to another application (gnuplot) when it encounters this type. Secondly, there exist scrips which will allow the gnuplot to print from STDIN. You may be able to connect STDIN to the web stream. By achieving these two tasks, you may be able to get the behaviour you have loosely specified. cheers, r, |
|
From: Nalin G. <nal...@ya...> - 2006-09-20 11:31:59
|
Thanks for the information. Also it is ok if browser delegate display to another xterm or X11 window. I did find one co-author of gnuplot doing same. "http://www.bmsc.washington.edu/people/merritt/gnuplot_test.html" - I tried this example and was able to invoke my webplot script after some iterations. - But when I just for sake, wrote a simple file and at its top typed MIME header: version and content-type. On opening in web browser, that did not work. May be I need to pick up mime syntax. (Any Hints ?) - Image creation at webserver I wish to avoid, as web server is running on embedded networking device under stress, with less resources. Lastly, I need take of logging of incoming data and display last few seconds window in graph/gnuplot. Thanks once again. regards, - nalin Richard Henwood <r.h...@rl...> wrote: Hans-Bernhard Bröker wrote: > Nalin Gupta wrote: > >> I wish to learn, is it possible that web server streams some data (X,Y) >> and web browser invoke gnuplot to display this dynamic data > > No. There are very serious security implications that forbid this kind > of setup. > > Running programs in or from your web browser requires completely > different techniques than those used by desktop applications (like > gnuplot). For that kind of job you need Java. > Hi Nalin and Hans-Bernhard, The short answer, as Hans has stated is: NO. The slightly longer answer is: why would you want to do this? there maybe a better way to complete your goal - serverside gnuplot image generation? The longer answer is: Maybe, First, you could configure your webserver to send a customised mime type when your stream is selected by your browser. You could then configure your browser to delegate activity to another application (gnuplot) when it encounters this type. Secondly, there exist scrips which will allow the gnuplot to print from STDIN. You may be able to connect STDIN to the web stream. By achieving these two tasks, you may be able to get the behaviour you have loosely specified. cheers, r, ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gnuplot-info mailing list Gnu...@li... https://lists.sourceforge.net/lists/listinfo/gnuplot-info --------------------------------- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW |
|
From: Richard H. <r.h...@rl...> - 2006-09-20 12:58:31
|
Nalin Gupta wrote: > Thanks for the information. Also it is ok if browser delegate display to > another xterm or X11 window. > > I did find one co-author of gnuplot doing same. > "http://www.bmsc.washington.edu/people/merritt/gnuplot_test.html" > > - I tried this example and was able to invoke my webplot script after some > iterations. > > - But when I just for sake, wrote a simple file and at its top typed MIME > header: > version and content-type. > On opening in web browser, that did not work. > May be I need to pick up mime syntax. (Any Hints ?) > Mime types are be sent by the Web Server during http negotiation. http://en.wikipedia.org/wiki/MIME So you'll need to configure your Web Server, not your data file. > - Image creation at webserver I wish to avoid, as web server is running > on embedded networking device under stress, with less resources. > Ah - good reason! > Lastly, I need take of logging of incoming data and display last few > seconds window in graph/gnuplot. > Well, this is beyond my experience. However, I'm prepared to guess that can be achieved; a combination of gnu tools or a short script/program should surfice. Let us know how you get on, It sounds like a nice little application. r, <snip previous messages> |