Hi All,
I am using a python system command to execute a C++ executable file which takes certain binary input.
For example:
C++ exe name is "Test"
"Test" takes the following input . '\x02\xfa\xcbQH\x00'
command = '/opt/etc/Test %s' % ('\x02\xfa\xcbQH\x00')
system command I am using is : os.popen(command)
When this command is executed I get an error message: "TypeError: 'popen() argument 1 must be string without null bytes, not 'str'"
Is there some way I can execute this using system command without getting the above error
Thanks