Hi ,
I a stuck with this problem. I am trying to execute this script1 on SERVER 1 from SERVER 2 using script2
script1 on SERVER 1
#!/usr/bin/ksh
/opt/perf/bin/glance -f -adviser_only -iterations 2 -maxpages 2 > /home/user/scripts/glance.op
cpuval1=`grep ^CPU /home/user/scripts/glance.op| cut -d"|" -f2| cut -d"%" -f1`
memval1=`grep ^Mem /home/user/scripts/glance.op| cut -d"|" -f2| cut -d"%" -f1`
echo "The CPU Utilization is"
echo $cpuval1
echo
echo "The Memory Utilization is "
echo $memval1[/SIZE]
[/SIZE]8
Script2 on Server 2
#!/usr/bin/ksh
echo " "
echo "The Current date and Time is "
date
echo " "
scriptpath=/home/user/scripts
ssh shs1pd1 $scriptpath/glance_details.sh
Error in the glance.op file
===================== GlancePlus Fatal Error =====================
Version:
User : xxxx Date: Wed Apr 26 02:55:54
File : ../../../gp/source/glance/terminal.c Line: 159
System : xxxxx B.11.11 9000/800
Unable to initialize terminal.
stdin is not a terminal device.
===================== GlancePlus Non-Fatal Error =====================
Version:
User : xxxx Date: Wed Apr 26 02:55:55
File : ../../../gp/source/glance/glance.c Line: 1377
System : xxxxx B.11.11 9000/800
Unable to perform functions on devices.
===================== GlancePlus Non-Fatal Error =====================
Version:
User : xxxx Date: Wed Apr 26 02:55:55
File : ../../../gp/source/glance/glance.c Line: 1379
System : xxxxxx B.11.11 9000/800
Unable to perform functions on devices.
Can some one help me fix this problem ..
Thanks ..