I'm working on a script that will scan a directory and compare the modified date to today's date. If there's a match, the modified file will get submitted to stage. Also a filelist of all the modified files will get generated and then all the files will get deployed to our production environment.
When I run the script, every other file gets submitted but all the files get deployed correctly. I'm stumped on why the script isn't deploying all the files to IW stage. Thanks for any insight.
my $submitFilesList = $tempfolder."/submit_filelist.$deploymentid";
open (SUBMITLIST,">$submitFilesList");
$tempFilesToSubmit = get_submitfilepath($filesToSubmit);
print SUBMITLIST $tempFilesToSubmit."\n";
print SUBMITLIST $submitComment."\n";
close SUBMITLIST;
print "Succesfully submitted files to Teamsite:: $tempFilesToSubmit \n
";
#--- Submit the file to teamsite for versioning ---
my $submitcmd = "\/iw-home\/bin\/iwsubmit -u -f $submitFilesList";
my $submitreturn = `$submitcmd`;
print "SUBMITFILESLIST $submitFilesList \n";
unlink $submitFilesList;