tseemann / legsta

🍗⭐ In silico Legionella pneumophila Sequence Based Typing
GNU General Public License v3.0
7 stars 3 forks source link

Unwanted output saved to redirected file #9

Closed andersgs closed 5 years ago

andersgs commented 5 years ago

At the moment, if we run:

legsta myfasta.fa > legsta_res.txt

The first line of the file turns out to be:

-minPerfect=N - Minimum size of perfect match at 3' end of primer (default 15)

Turns out, on line 30 of legsta we have this:

system("$ISPCR 2>&1 | grep -- minPerfect")==0 or err("Can not run $ISPCR");

Perhaps it should be:

system("$ISPCR 2>&1 | grep -- minPerfect > /dev/null")==0 or err("Can not run $ISPCR");
tseemann commented 5 years ago

I will use the --silent option of grep. It's BSD and SYSV.