F
Frank Liebelt
Hi
I am a beginner in c++.
In my little program i would unpack a tar file with a system call.
system("tar -xfv unpack.tar");
Is it possible to check that the tar command was successfull or not?
I know system() gives -1 on error, 0 on OK but how to check tar was
successfull?
I thought about if (access(... but i hope there is a better way to do this.
Frank
I am a beginner in c++.
In my little program i would unpack a tar file with a system call.
system("tar -xfv unpack.tar");
Is it possible to check that the tar command was successfull or not?
I know system() gives -1 on error, 0 on OK but how to check tar was
successfull?
I thought about if (access(... but i hope there is a better way to do this.
Frank