Error while executing glance using ssh

Hi,

I'm running glance ussing ssh from a "HP-UX" machine for a Sun machine.

Here is a sample code:-
x:- HP-UX
y:- Sun
Extracting a value from glance outuput.

ssh x@y "/opt/perf/bin/glance -f -adviser_only -iterations 2 -maxpages 1 > glance.op ; echo `head -1 glance.op | a
wk '{print $13}'`"

However the file "glance.op" has the following outuput.

Welcome to GlancePlus
===================== GlancePlus Fatal Error =====================
Version: B3694A GlancePlus C.04.50.00
User : cxp Date: Wed Oct 17 08:58:55
File : ../../../gp/source/glance/terminal.c Line: 159
System : atls024 5.8 sun4u

Unable to initialize terminal.
stdin is not a terminal device.

===================== GlancePlus Non-Fatal Error =====================
Version: B3694A GlancePlus C.04.50.00
User : cxp Date: Wed Oct 17 08:58:56
File : ../../../gp/source/glance/glance.c Line:

Please help in getting the correct output.