stty: : Invalid argument

Hello Everyone;

I have a script that is throwing the following message:
stty: : Invalid argument

The line that gives the message is the following,

sailormoon$ scp home/voice.xml newwave@silvermoon:/newwave/config/radius

stty: : Invalid argument
voice.xml | 142 KB | 142.4 kB/s | ETA: 00:00:00 | 100%

sailormoon$

HOW CAN I GET RID OF THIS MESSAGE?
Tony

sailormoon$ uname -a
SunOS sailormoon 5.8 Generic_117350-08 sun4u sparc

sailormoon$ which scp
/opt/ssh/bin/scp
sailormoon$

Check the .profile or .login of the user newwave on server silvermoon - it's probably setting something like 'stty erase ^H' which is invalid when you don't have a terminal associated with the process. If you find that it is something you want to keep, either set it up so it checks that there is a terminal device associated before running that command, or, ignore the error.

Thank You RTM, the problem was in my .cshrc file.

I found this info in some wedsite

"While i doubt the stty errors are the problem stty should
never be called from a .cshrc file. stty belongs in .login
where it will only be called for login shells."

Tony