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++ Core » executing commands and viewing it's result
Re: executing commands and viewing it's result [message #23137 is a reply to message #23088] Fri, 18 September 2009 09:32 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello all

Some posts summarized in one...

For Mirek: About SysConsole

Quote:

In the usvn package, there is the SysConsole class. You might want to check it.

It is sort of waiting for being moved to CtrlLib or something like that, after perhaps some refurbishing. Maybe you can try it out of usvn context to check what is missing for general use?

I have tested it and I find it useful. In fact I have a class with the same functionality...

Please move it to the main library

I will substitute my class with yours to see if anything else could be necessary.

One thing I would do now is to manage '\r':
Some programs as mencoder or ffmpeg show in a line the status of the process, printing lines one over other


For TeCNoYoTTa: You do not need ExecuteCMD

... as Sys() function just does the same:

int Sys(const char *cmd, String& out)
{
	out.Clear();
	LocalProcess p;
	if(!p.Start(cmd))
		return -1;
	while(p.IsRunning()) {
		out.Cat(p.Get());
		Sleep(1); // p.Wait would be much better here!
	}
	out.Cat(p.Get());
	return p.GetExitCode();
}

For Mirek and everybody: To organize us a little

I know it is not the first time I tell it, I see many times that different people do the same thing.
It would be great to have a place to put the "THINGS TO DO" so people that have time can take them and do it. If somebody has not time to follow can ask for help and other people can "pass the baton on to the next relay runner".

We had three implementations of Sys(), now we have two implementations of cryptography.

The reason I announce the things I will do months before is just to coordinate with others, but it is not the best way.

Mirek: Thank you for having Bazaar inside Upp. Other projects do not have the same.

However perhaps it is the time to have some kind of better Bazaar inside or outside Upp web page:
- With a project list with description: All the Bazaar packages visible
- With all documentation: Now Bazaar documentation is not in the web page
- With a TO DO board to organize the next things to do. For Bazaar and Upp main packages

Opinions?

Best regards
Koldo


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
Previous Topic: Splitting a string by a string?
Next Topic: *Map::IsPicked() is missing
Goto Forum:
  


Current Time: Mon May 13 05:20:09 CEST 2024

Total time taken to generate the page: 0.04032 seconds