I have a file that needs to be passed some arguments to start executing a process. The file is ../main/serv. If I execute this command in unix shell terminal everything goes alright.
../main/serv -o phy=dhc=file:serv:1 -o in=dhc,0 -o out=file:phy_out:1 -o eui48=01:00:00:00:00:00
I call this function from my python script to start the process but doesn't work.
subprocess.call(["../main/serv", "phy=", "dhc=file:serv:1", "in=", "dhc,0", "out=" , "file:phy_out:1", "eui48=01:00:00:00:00:00"])
I've been searching for a solution but I din't find it, I think that I'm not passing correctly the arguments, how can I do it?
Thank you!