Jan-27-2018, 09:09 AM
(Jan-27-2018, 07:29 AM)wavic Wrote: If the 'command' is already a list of arguments created by split() why you closing it in another []s?
Print 'end_of_pipe' to see if it contains something.
Sorry wavic when I do
command = "cat /home/norman/khconf/second.txt | sort | uniq > /home/norman/khconf/third.txt".split() subprocess.call(command)I get
Error:cat: '|': No such file or directory
cat: sort: No such file or directory
cat: '|': No such file or directory
cat: uniq: No such file or directory
cat: '>': No such file or directory