The perl command is
perl /opt/translation/moses/scripts/tokenizer/tokenizer.perl -l en < Eng-hin.translation.en > Input/tokenization/Eng-hin.translation.tok.en
I want to execute the above perl command in python script ,Here the perl command is executed successfully in Popen() but no output file is created at location "Input/tokenization/Eng-hin.translation.tok.en".
var = "-l en < Input/Corpus/"+inputfilename+" > Input/tokenization/Eng-hin.translation.tok.en"
pipe = subprocess.Popen(["perl",
"/opt/translation/moses/scripts/tokenizer/tokenizer.perl",
var
])
Can someone tell me whats happening behind ?