I used to be able to pass input to C program by first writing a python script and using pipe to send it to the C program as an input
or write the output of python script to a file and just doing r < myfile in gdb
but how can i do this to pass argv arguments to a C function?
i need to pass a long argument and need to use print function of python to create the value, but i don't know how can i pass it to the C program? piping or using < doesn't work.
for example doing python x.py | myprogram didn't work, and using it after the myprogram like myprogram python x.py doesn't work either, how can i pass the output as an argv argument of this program?