Skip to content
Prev 156744 / 398506 Next

use of system() under Linux

H

I want to use the system() command to execute a command and have to
return the result in a r-variable, so I an using intern=TRUE.

On the other hand, I want to evaluate the return value of the command,
to determine if the command was successful.

According to the help, these to objectives are exclusive, either the
one or the other. Is this true, or is there another way of
accomplishing this?

My prefered return value would be a list, consisting of thre entries:
return code of the command
stderr
and the result

Thanks

Rainer