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 #23094 is a reply to message #23092] Thu, 17 September 2009 06:57 Go to previous messageGo to previous message
andrei_natanael is currently offline  andrei_natanael
Messages: 262
Registered: January 2009
Experienced Member
TeCNoYoTTa wrote on Thu, 17 September 2009 03:47

thanks but it's not found also

i included Core/Core.h BTW


You have to edit assembly in which you work and put an entry pointing to Bazaar. i.e.
Quote:

/home/andrei/upp/MyApps;/home/andrei/upp/uppsrc;/home/andrei /upp/bazaar

after that you may access packages from bazaar, so SysExec should be accessible.

Create a project, add SysExec package to it and use it freely.
#include <Core/Core.h>
#include <SysExec/SysExec.h>
using namespace Upp;

CONSOLE_APP_MAIN
{
	String output;
	SysExec("ls", "/home/andrei", output);
	Cout() << output;
}
 
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 16:06:55 CEST 2024

Total time taken to generate the page: 0.02478 seconds