#!/usr/bin/perl -w use strict; no strict "vars"; # # copy1file # To copy 1 file from a tree to the same position on another parallel tree # # Usage: copy1file srctree destree filename # # Version of 2007 Mar 22 pm 5:05 # # THIS Perl FILE IS MEANT TO RUN ON THE LINUX HOST COMPUTER WHERE THE system() # commands are the way these are used below. -dch # # if ($#ARGV+1 != 3) { die "copy1file needs , , as arguments\n"; }; # Check existence of the source file: (open SRCFILE, "