in reply to Re^3: System call doesn't recognise '>'
in thread System call doesn't recognise '>'
my @array = qq/$command $arg1 $arg2 $arg3 > $outfile/; system "@array";
Resulted in: Can't spawn "cmd.exe": No such file or directory at D:\advanced_programming\test_syscall.pl line 10.
On the other hand:
my @array = ($command, "$arg1 $arg2 $arg3 > $outfile");
system (@array);
Results in:
Clover: Cis-eLement OVERrepresentation Compiled on Jul 18 2006 Error: motif and sequence files required Usage summary: clover [options] mymotifs myseqs.fa [BGfiles]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: System call doesn't recognise '>'
by Bloodnok (Vicar) on Dec 10, 2008 at 15:05 UTC | |
by Lauras (Initiate) on Dec 10, 2008 at 16:04 UTC | |
by cdarke (Prior) on Dec 10, 2008 at 16:08 UTC | |
by Lauras (Initiate) on Dec 10, 2008 at 16:13 UTC | |
by Bloodnok (Vicar) on Dec 10, 2008 at 16:21 UTC | |
by Lauras (Initiate) on Dec 10, 2008 at 21:42 UTC | |
by Corion (Patriarch) on Dec 10, 2008 at 16:18 UTC | |
by Lauras (Initiate) on Dec 10, 2008 at 21:33 UTC |