Hi, When i run a script it is showing me the whole authentication and data to be copied on screen
server1:/sasdata/script#sh .TR_CNTO328.sh
**************************************************
*********************NOTICE***********************
This system is restricted to authorized users
for business purposes only.
Unauthorized access or use is a violation of
company policy and the law.
This system may be monitored for administrative
and security reasons.
By proceeding, you acknowledge that (1) you
have read and understand this notice and (2)
consent to system monitoring.
**************************************************
**************************************************
ae.sas7bdat.lck 100% 24KB 24.0KB/s 24.0KB/s 00:00
**************************************************
*********************NOTICE***********************
This system is restricted to authorized users
for business purposes only.
Unauthorized access or use is a violation of
company policy and the law.
This system may be monitored for administrative
and security reasons.
By proceeding, you acknowledge that (1) you
have read and understand this notice and (2)
consent to system monitoring.
**************************************************
**************************************************
TR_CNTO328.log 100% 0 0.0KB/s 0.0KB/s 00:00
,
but when i run this script
server1:sh .TR_CNTO328.sh > TR_CNTO328.log
TR_CNTO328.log shows only authnetication not copied data.
I need to get written this data in log file. Please suggest
In that case, try the tee option given. You're looking for the stats echoed by an internal call to something like SSH...but only managing to capture the banners of the remote system(s). The tee should just capture all terminal output.
how to get the STDOUT file so that it contain all the entries of files?
I am trying but not geting as excepted result. you guys have any clue my command follows
From here I cannot be certain of what the TR_CNTO328.sh script is doing, but it seems like a banner from an SSH or SCP/SFTP connection. Based on your session listing from earlier, it looks like the stats from a file transfer.
My earlier suggestion had been to ensure that the script's connection(s) are forced to STDOUT from within the script. Have you tried this, or is the script something you cannot edit?
I have copy.sh script and content of script is as follows
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