If in windows, I do: type logfile | cantools plot inputfile.dbc What would the syntax look like if I'm trying to do using Popen? The following did not work as it did not pipe the logfile contents to cantools args = ["plot inputfile.dbc"] p = Popen(['cantools'] + args, stdout=PIPE)