Question: Unable to redirect mummer log to a file when called inside php
gravatar for karthic
11 months ago by
karthic100 wrote:

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

ADD COMMENTlink modified 11 months ago by Biostar ♦♦ 20 • written 11 months ago by karthic100
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1634 users visited in the last hour