comparison emboss_single_outputfile_wrapper.pl @ 10:9b98d3d903c6 draft

planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/emboss_5 commit fc158bfe5f5927dc199321a2cf43310373cbc8ba
author devteam
date Fri, 12 Aug 2016 19:17:10 -0400
parents
children bde3097ac0f6
comparison
equal deleted inserted replaced
9:18a63c800a4d 10:9b98d3d903c6
1 #! /usr/bin/perl -w
2 use strict;
3 use File::Copy;
4
5 my $cmd_string = join (" ",@ARGV);
6 my $results = `$cmd_string`;
7 my @files = split("\n",$results);
8 my $fileNameOut = $ARGV[6];
9 my ($drive, $outputDir, $file) = File::Spec->splitpath( $fileNameOut );
10 my $destination = $fileNameOut;
11
12 foreach my $thisLine (@files)
13 {
14 if ($thisLine =~ /Created /)
15 {
16 $thisLine =~ /[\w|\.]+$/;
17 $thisLine =$&;
18 #print "outfile: $thisLine\n";
19 #there is only one file to move, so we can quit after finding it
20 move($drive.$outputDir.$thisLine,$fileNameOut);
21 exit(1);
22 }
23 else
24 {
25 print $thisLine,"\n";
26 }
27 }