Solved (was: Exit-Code von Shellbefehl in C auswerten)

Jens Nixdorf <[email protected]>
Newsgroups gmane.linux.suse.programming
Organization .
Message-ID <[email protected]>
Am Donnerstag, 13. März 2008 schrieb Jens Nixdorf:

> int rc=0;
> rc=system("pump -i eth0");
>
> Das hat nicht funktioniert, weil in rc eine 5 erscheint. Der nächste
> Versuch war mit dem Makro WEXITSTATUS:

So, da habe ich mich schön selber verarscht. Wenn man das Programm immer 
aus der IDE heraus startet, und dabei automatisch der Debugger läuft, 
dann bekommt man eben nicht die richtigen Rückgabewerte. Ohne Debugger 
schon. Hmpf. 

mfG, Jens
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.