1828349 Members
3043 Online
109976 Solutions
New Discussion

Re: Script menu output.

 
SOLVED
Go to solution
Boerbokrib
Advisor

Script menu output.

Hi

 

I have a script that gives me a menu that users can use to copy files however. when i use the command.

 

 scp -p -r /Deploy/SMSV500_Repository/* ALSJAD1:/Deploy/SMSV500_Repository/ | tee
 -a $log_path/$log_file

The banner from ssh outputs to the screen. I need for this not to happen. as it confuses the users. We are not allowed to disable the ssh banner for this user.

 

Any thoughts on this challenge?

 

2 REPLIES 2
VK2COT
Honored Contributor
Solution

Re: Script menu output.

Hello,

 

I think it is easy:

 

 scp -p -r /Deploy/SMSV500_Repository/* ALSJAD1:/Deploy/SMSV500_Repository/ 2>/dev/null | tee
 -a $log_path/$log_file

 

Just add "2>/dev/null" to your scp command.

 

Cheers,

VK2COT - Dusan Baljevic
Boerbokrib
Advisor

Re: Script menu output.

Thank you very much sometimes it is the simple things in life that make all the diffrence.