Adding link for newLink
Running Command: /bin/ip link add dev newLink type bridge
Process Created: 0
STDOUT
STDERR
Process Joined: 0
While running the same command on the command line gives
RTNETLINK answers: Operation not permitted
I would like to output "RTNETLINK answers: Operation not permitted" or I would like to capture a failure when a command that needs to be run as root is not run as root.
This may be a command specific problem but commands that need to be run as root fail silently.
Example:
If the executable isnt run as root the output is:
While running the same command on the command line gives
RTNETLINK answers: Operation not permitted
I would like to output "RTNETLINK answers: Operation not permitted" or I would like to capture a failure when a command that needs to be run as root is not run as root.