Thanks for a quick response. I tried that and it didn't seem to work, although my call piped output to another call, so I just had to relocate the stderr redirect to the first call and now it works (duh). Thank you!
prevent [samopen] from being printed by samtools
I am calling samtools as a subprocess from a script, many times. Each time it runs I get a message to the screen that says [samopen] SAM header is present: X sequences. I have tried to redirect it, but have not been successful. I don't see any kind of "quiet" mode option in samtools. Is there a way to make this not print every time I call samtools?
• 3,112 views
•
link
2 answers
Redirect stderr to /dev/null http://askubuntu.com/questions/350208/what-does-2-dev-null-mean
cmd 2> /dev/null
• 0 views
•
link
• 0 views
•
link
Log in to answer this question.