tads98
July 25, 2005, 5:18am
1
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?
vino
July 25, 2005, 5:33am
2
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
NPRao
July 28, 2005, 6:34pm
3
Check man glance and you can use these options -
-adviser_only This option allows Glance to run with no screen
displays to the terminal. Only the Adviser will run,
sending it's output to stdout. With this option, the
glance Adviser runs in the background, with stdout
output optionally redirected to a file. If you want to
run glance in "Adviser only" mode at startup time, you
must include the -bootup option as well.
-iterations count
This option allows you to limit the number of intervals
that Glance will run. This can be used in conjunction
with the -adviser_only option which enables glance to
run in the background with no terminal screen displays.
Glance will execute for the number of iterations
specified and then terminate. The minimum iteration
value is 2 which will be used if the count is specified
as 2 or less.
What's EOT ?
I've seen some HP sample shell scripts using EOT as a here doc marker.