Need help with scp

Hi,

I am trying to do scp from server A to server B. But while doing the scp i am getting the following message.

+-----------------------------------------------------------------+
| This system is for the use of authorized users only.            |
| Individuals using this computer system without authority, or in |
| excess of their authority, are subject to having all of their   |
| activities on this system monitored and recorded by system      |
| personnel.                                                      |
|                                                                 |
| In the course of monitoring individuals improperly using this   |
| system, or in the course of system maintenance, the activities  |
| of authorized users may also be monitored.                      |
|                                                                 |
| Anyone using this system expressly consents to such monitoring  |
| and is advised that if such monitoring reveals possible         |
| evidence of criminal activity, system personnel may provide the |
| evidence of such monitoring to law enforcement officials.       |
+-----------------------------------------------------------------+

I don't want the above message as my script output is appearing in a strange way...

I tried using "tr" command to remove all the characters, but not sure how it is not removing..

Please help..

Regards
Siddharth

use -q

ssh -q

Hi Kamaraj,

Yes we can do this when we perform ssh. But i am using the scp command

scp file.txt user@server:/path/file.txt

I m calling this from my script, and I don't want that output.. I tried to do it in different ways to restrict it.. but its not working for me.. I believe there should me some ways to do this.

Please give me some ideas..

what happens if u redirect the output to /dev/null ?

scp file.txt user@server:/path/file.txt > /dev/null

I tried this earlier.. but still getting the same output...

scp file.txt user@server:/path/file.txt > /dev/null 2>&1

This is what exactly I need it... Its working for me now..

why didn't i think about the file descriptor initially...

That's why ppl need help from experts like you.

Thanks much Kamaraj