Mercurial > repos > devteam > emboss_5
view emboss_single_outputfile_wrapper.pl @ 20:21a9fb508031 draft default tip
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit e0d4688a59e6eeba33adcfe803ac43d0bc2863e7"
author | iuc |
---|---|
date | Tue, 31 Aug 2021 08:05:39 +0000 |
parents | bde3097ac0f6 |
children |
line wrap: on
line source
use strict; use warnings; use File::Copy; my $cmd_string = join (" ",@ARGV); my $results = `$cmd_string`; my @files = split("\n",$results); my $fileNameOut = $ARGV[6]; my ($drive, $outputDir, $file) = File::Spec->splitpath( $fileNameOut ); my $destination = $fileNameOut; foreach my $thisLine (@files) { if ($thisLine =~ /Created /) { $thisLine =~ /[\w|\.]+$/; $thisLine =$&; #print "outfile: $thisLine\n"; #there is only one file to move, so we can quit after finding it move($drive.$outputDir.$thisLine,$fileNameOut); exit(1); } else { print $thisLine,"\n"; } }