in reply to Running an external command
Actually, I ran this:
open INP,"< $ARGV[0]" or die "Cannot open file: $!"; $file = "$ARGV[1]"; open OUT, "> $file" or die "Cannot open file: $!"; @out = `/home/applications/samtools-0.1.7a/samtools view -bS $ARGV[0] +2>&1`; print OUT @out; close INP; close OUT;
And I was able to produce a non-empty file. Unfortunately, it got truncated somehow. Is it because of my use of backticks?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Running an external command
by Mr. Muskrat (Canon) on Apr 26, 2012 at 17:19 UTC | |
|
Re^2: Running an external command
by ww (Archbishop) on Apr 26, 2012 at 11:45 UTC |