use strict; use POSIX; use File::Copy; my $importConfigurationPath = substr($0,0,2 ) . "/copra-server/common/scripts/importConfiguration.pl"; require "$importConfigurationPath"; #exit falls aufruf mit != 3 argumenten if ($#ARGV + 1 != 3){ print "invalid amount of args, syntax has to be distributeJobs.pl [BPS_CONFIG_FILE] [JobsToDistributeFolder] [job-prefix]]\n"; exit; } (my $config_filename, my $jobsToDistributeFolder, my $jobPrefix) = @ARGV; my $logfolder = $configValue{logfolder};