Unable to redirect mummer log to a file when called inside php
0
0
Entering edit mode
17 months ago
karthic ▴ 100

I have the following mummer command, when run in terminal it redirects both output and error (log) to separate files.

mummer -mum Reference.fasta Query.fasta > output.txt 2> err.txt

However the same command when called inside a php as below, it only prints output but not error (log).

shell_exec("mummer -mum '$ref_dest' '$sub_dest' > output.txt 2> err.txt");

Please let me know what has to done.

Thanks, Karthic K

software error sequence next-gen alignment • 248 views
ADD COMMENT

Login before adding your answer.

Traffic: 2799 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6