cpature data from glance and exit

it trying to create a script that captures data from the glance command every 10 mins. when the command is executed, it displays data and will only exit when E is pressed. how can i code my script to exit from after the data is collected?

i am trying to use EOT, does anyone knows how this works?

I dont know how the glance command works.

But why dont you try using the glance command within a here document ?

My 2 cents,
vino

Check man glance and you can use these options -

What's EOT ?

I've seen some HP sample shell scripts using EOT as a here doc marker.