Kimm
May 3rd, 2005, 03:03 PM
ok, perhaps this is a very silly question and everyone should know how to do it... but I happen not to :razz:
when I run an application in the console, lets say I run apt-get, It prints information on the screen, and if an error occures it tells me that, I can easily tell that an error occured from inside the application, like so:
int number = 0;
number = system("apt-get <something>");
and thats easy, but what if I wanted to know exactly what the problem was, if I was running apt-get and something unwanted happens, perhaps I want to know exactly what library was missing or perhaps if it is not in the repositores, how would I know that?
I mean, I want the app to be able to know, so that the app knows what to do
when I run an application in the console, lets say I run apt-get, It prints information on the screen, and if an error occures it tells me that, I can easily tell that an error occured from inside the application, like so:
int number = 0;
number = system("apt-get <something>");
and thats easy, but what if I wanted to know exactly what the problem was, if I was running apt-get and something unwanted happens, perhaps I want to know exactly what library was missing or perhaps if it is not in the repositores, how would I know that?
I mean, I want the app to be able to know, so that the app knows what to do