thanks for reply curleb
I have copy.sh script and content of script is as follows
PHP Code:
cd /sasdata/script
sh .TR_CNTO328.sh 2>&1 | tee -a TR_CNTO328.log
wait
sh .CNT06785.sh 2>&1 | tee -a CNT06785.log
wait
sh .CNT0328.sh 2>&1 | tee -a CNTO328.log
wait
sh .CNT01275.sh 2>&1 | tee -a CNT01275.log
wait
sh .CNT0148.sh 2>&1 | tee -a CNT0148.log
wait
exit
and content of TR_CNTO328.sh script. this script transfer data to another server and i need the output of this script to say TR_CNTO328.log file
PHP Code:
STAMP=$(perl -e '($ss, $mm, $hh, $DD, $MM, $YY) = localtime(time() - 12096000);
printf "%04d%02d%02d%02d%02d", $YY + 1900, $MM + 1, $DD, $hh, $mm')
touch $STAMP /sasdata/CNTO1275/C0743T23/Final_DBL/Analysis
cd /sasdata/CNTO1275/C0743T23/Final_DBL/Analysis
find . -type f -newer . -exec scp -p {} sasadmin@cua35132sas101:/sasdata/CNTO1275/C0743T23/Final_DBL/Analysis ';' ;
STAMP=$(perl -e '($ss, $mm, $hh, $DD, $MM, $YY) = localtime(time() - 86400);
printf "%04d%02d%02d%02d%02d", $YY + 1900, $MM + 1, $DD, $hh, $mm')
touch $STAMP /sasdata/CNTO1275/C0743T23/Final_DBL/Data
cd /sasdata/CNTO1275/C0743T23/Final_DBL/Data
find . -type f -newer . -exec scp -p {} sasadmin@cua35132sas101:/sasdata/CNTO1275/C0743T23/Final_DBL/Data ';' ;
STAMP=$(perl -e '($ss, $mm, $hh, $DD, $MM, $YY) = localtime(time() - 86400);
printf "%04d%02d%02d%02d%02d", $YY + 1900, $MM + 1, $DD, $hh, $mm')
touch $STAMP /sasdata/CNTO1275/C0743T23/Final_DBL/Docs
cd /sasdata/CNTO1275/C0743T23/Final_DBL/Docs
find . -type f -newer . -exec scp -p {} sasadmin@cua35132sas101:/sasdata/CNTO1275/C0743T23/Final_DBL/Docs ';' ;