I have modified a file in usr/bin called tsudpsend.c and made the compilation and gave me no error.
I'm calling this executable file from a python script as follows:
self.proc = []
...appending to self.proc some output from other applications...
self.proc.append(subprocess.Popen(["tsudpsend", "/dev/stdin", out_address, str(port), "10000000", "eth0"], stdin=self.proc[-1].stdout, stdout=subprocess.PIPE))
I understand that if I want to get the output from subprocess.Popen I would use something like this
self.out_pipe = self.proc[-1].stdout.fileno()
print self.out_pipe
However, this is not sufficient. I would like to see the complete logs of this c file running. I've been searching for a while but I have no clue. Any suggestions please?