Re: call system command

2007-05-15 Thread Chas Owens
On 5/15/07, Dr.Ruud <[EMAIL PROTECTED]> wrote: snip AFAIK, it is not that "Perl automagically uses the right directory separator", but that the shell at hand understands both ways. How does it work with MacOS9? snip I could have sworn that it was, but I just checked perldoc perlport and my memo

Re: call system command

2007-05-15 Thread Dr.Ruud
"Chas Owens" schreef: > Tatiana Lloret Iglesias: >> my $status = system("d:\\blast\\bin\\blastall -p blastn -i $file -d >> $patDB -o $workdir\\blast_$blast_file_id.txt"); > snip > > Just an unrelated note to make your life a little easier, Perl > automagically uses the right directory separator if

Re: call system command

2007-05-14 Thread Chas Owens
On 5/14/07, Tatiana Lloret Iglesias <[EMAIL PROTECTED]> wrote: snip my $status = system("d:\\blast\\bin\\blastall -p blastn -i $file -d $patDB -o $workdir\\blast_$blast_file_id.txt"); snip Just an unrelated note to make your life a little easier, Perl automagically uses the right directory sepa

Re: call system command

2007-05-14 Thread Xavier Noria
On May 14, 2007, at 3:52 PM, Tatiana Lloret Iglesias wrote: Thank a lot! Another related question,,, system command can be used also for linux? Sure. Of course it is unlikely that the arguments themselvels are portable in practice, I mean blastall won't probably be located at "d: \\blast\\

Re: call system command

2007-05-14 Thread Tatiana Lloret Iglesias
Thank a lot! Another related question,,, system command can be used also for linux? Regards T On 5/14/07, Xavier Noria <[EMAIL PROTECTED]> wrote: On May 14, 2007, at 3:44 PM, Tatiana Lloret Iglesias wrote: > Hi all, > > I have to execute this command from perl: > > my $status = system("d:\\bl

Re: call system command

2007-05-14 Thread Xavier Noria
On May 14, 2007, at 3:44 PM, Tatiana Lloret Iglesias wrote: Hi all, I have to execute this command from perl: my $status = system("d:\\blast\\bin\\blastall -p blastn -i $file -d $patDB -o $workdir\\blast_$blast_file_id.txt"); but the problem is that $workdir contains spaces how can I