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 » Developing U++ » UppHub » Added SysExec package
Re: Added SysExec package [message #17376 is a reply to message #16047] Sat, 09 August 2008 22:29 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3358
Registered: August 2008
Senior Veteran
Hello mdelfede

Thank you for your functions. I am really interested in them plus:
- A version that could also write characters to the command
- A function to open a file looking first for the right program

For the first options I have found in the forums these two posts:

- http://www.ultimatepp.org/forum/index.php?t=msg&goto=160 18&&srch=CreateHostRunDir#msg_16018

StringStream ss;

Ide id;
id.CreateHostRunDir()->Execute("valgrind --help", ss);

String txt = ss;

- http://www.ultimatepp.org/forum/index.php?t=msg&goto=156 20&&srch=StartProcess#msg_15620

String ret; // <-- Added this line
String cmdline = "ping -n 3 192.168.0.1";
One<SlaveProcess> sp = startprocess(cmdline);
while(sp->IsRunning()){
Sleep(200);
sp->Read(ret); // <-- Added this line
}
return sp->GetExitCode();

(The first post is from you)

It seems inside "The Ide" are the ideas to complete SysExec(). Please tell me were you are in their developing and if I can help to have them read as soon as possible.

Best regards


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [SOLVED] Control4U_demo cannot close ?
Next Topic: Job package: A lightweight worker thread for non-blocking operations.
Goto Forum:
  


Current Time: Mon Apr 29 13:16:20 CEST 2024

Total time taken to generate the page: 0.02892 seconds