How to remove ssh headers from log file?
Hi!
My name is swami and am a new joinee. Well, I have a question. In my ksh script, I would like to test for presence of a folder on a remote machine thro's ssh. In my code,I'm looking for status. I want only error messages to appear on screen and log file. I'm getting these, as well as ssh header messages , in my log file, as well as screen. Is there any way to turn off header in ssh, when it logs on to a remote machine.
I'm enclosing sample output below!
"
Red Hat Linux Advanced Server release 2.1AS/\m (Pensacola)
**************************************************
THIS SYSTEM IS RESTRICTED TO AUTHORIZED USERS AND
BUSINESS PURPOSES ONLY. INDIVIDUALS ATTEMPTING
UNAUTHORIZED ACCESS AND NON-BUSINESS UTILIZATION
ARE LIABLE FOR DAMAGES INCLUDING THE VALUE OF
DIVERTED RESOURCES AND CRIMINAL PROSECUTION.
**************************************************
By continuing to login you acknowledge the above and accept
responsibility for all of your actions."
ERROR! ERROR!****nap found but apps not found under /amex/webroot/nap folder! on lpliu012 server!***** Exiting...ERROR! ERROR!
Please check /var/tmp/HODInstall0507231047.log for errors or other information
I don't want these headers inside the log file or appearing on the screen. If I direct o/p to null, nothing comes up. Any ideas are most welcome.
Regards
S.Swaminath.
|