0

this is the command i am running through os.system it is working absolutely fine

**cmd = "STAR --runMode genomeGenerate --genomeDir {output_dir} --genomeFastaFiles {input_file}" + " " + "2>&1 | tee /path/to/textfile"**

but when i try running it using subprocess.run or popen or anything, it is not working

i tried it using

**cmd = "STAR --runMode genomeGenerate --genomeDir {output_dir} --genomeFastaFiles {input_file}" + " "**

it was working with subprocess popen or run but i am expecting it to run like

**cmd = "STAR --runMode genomeGenerate --genomeDir {output_dir} --genomeFastaFiles {input_file}" + " " + "2>&1 | tee /path/to/textfile"**

using subprocess without using shell = True

Anonymous
  • 1
  • 1

0 Answers0