Mercurial > repos > devteam > emboss_5
view emboss_single_outputfile_wrapper.pl @ 14:27c43fb015f0 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/emboss_5 commit 9844cae766e7471d9fa6b2e8356e5194e77f6753
author | iuc |
---|---|
date | Fri, 22 Jun 2018 03:24:29 -0400 |
parents | 9b98d3d903c6 |
children | bde3097ac0f6 |
line wrap: on
line source
#! /usr/bin/perl -w use strict; 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"; } }