Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Process Class wrapper for pipes in windows/linux
Re: Process Class wrapper for pipes in windows/linux [message #11201 is a reply to message #11198] Mon, 27 August 2007 13:14 Go to previous messageGo to previous message
yeus is currently offline  yeus
Messages: 19
Registered: October 2006
Promising Member
ahh i figured what my problem was: I #included the <web/sproc.h>-file and not the <web/web.h>. For some Reason the compiler had problems linking all that stuff...

Here is my code so far:
One<SlaveProcess> pipe;
pipe=StartLocalProcess("pgnuplot");
	
if(pipe){
   pipe->Write("plot sin(x)\n");

   cout<<"running...\n";
   String s;
   Sleep(10000);	
   pipe->Kill();
   cout<<"gnuplot returned: "<<pipe->GetExitCode();
}//*/


I got the problem, that In this code "pipe" is NEVER invalid, as long as I have pgnuplot as starting command. Even if there appears a problem with starting pgnuplot for example, if I use invalid options and similar stuff.

Second Problem is, that for some reason I can not use the Kill()-Command. I am just not able to finish gnuplot when I started it...

Any idea on this?


Greetings, Tom...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Add capability to Log into Windows console
Next Topic: Bug in AddColumn of ArrayCtrl
Goto Forum:
  


Current Time: Thu Jun 26 16:13:19 CEST 2025

Total time taken to generate the page: 0.04301 seconds