Sponsored Content
Full Discussion: Use glance as a cron script
Operating Systems HP-UX Use glance as a cron script Post 302975552 by black_fender on Wednesday 15th of June 2016 09:06:49 AM
Old 06-15-2016
Use glance as a cron script

On a HP-UX 11.31 server I try to make a script that can launch glance for x iterations and the output to be stored in a file. I want to be able to launch the script via crontab.

glance manual says that in order to run glance in the background with no terminal screen displays I should use -adviser_only & -iterations options.
I tried this:
Code:
/opt/perf/bin/glance -f /tmp/glance/glance.20160613  iterations 2 advisor_only

Issues:
- the job does not run in background, it displays everything on the terminal
- glance doesn;t stop automatically after 2 iterations.

indeed it sends the output to the /tmp/glance/glance.20160613 file and the file keeps the data after I stop glance.

What am I doing wrong?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to quit from glance

hi, if i am in glance, how do i exit? thanks (2 Replies)
Discussion started by: yls177
2 Replies

2. UNIX for Dummies Questions & Answers

ctrl-z problem in glance

in hpux, when i in glance, i cant press ctrl-z, what could be wrong? thanks (11 Replies)
Discussion started by: yls177
11 Replies

3. Shell Programming and Scripting

Glance Fatal Error

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... (4 Replies)
Discussion started by: newbie07
4 Replies

4. UNIX for Dummies Questions & Answers

glance quick reference

Hello all, I´m newbie using HP-GLANCEPlus. I readed the help screens provided but, I´m wonder if there are a user manual to use glance, or where can I find some usefull tips to use this tool better. Anybody have some information? Regards. (2 Replies)
Discussion started by: mig28mx
2 Replies

5. HP-UX

Glance

Hi ALL - I need look to output data return from glance command but a don't have any access to HP-UX server. Maybe any HP-UX Admin send this data to my email (Removed.) Thanks for help Pawel (2 Replies)
Discussion started by: pawel_ul
2 Replies

6. UNIX for Dummies Questions & Answers

HP-UX 11.23 ia64 and Glance

I've been searching and cannot seem to find anywhere online a link to a manual for Glance. Does anyone have a link to this? I searched in here already and the links I found on a post from 2002 were dead. And more to the point, do you know if you can use Glance to see Disk I/O per logical... (2 Replies)
Discussion started by: LisaS
2 Replies

7. HP-UX

HP-UX glance

Hi, plz explain about glance, where do i get information on this tool. thanks. (4 Replies)
Discussion started by: venkat_t
4 Replies

8. UNIX for Dummies Questions & Answers

Help with glance and nohup

I am new to shell scripting. Can someone explain me what this piece of code do.. /usr/bin/nohup /opt/perf/bin/glance -aos filename2.syntax -iterations 1 > filename.log (1 Reply)
Discussion started by: vijay_105
1 Replies

9. UNIX for Dummies Questions & Answers

Execution problem with Cron: Script works manually but not w/Cron. Why?

Hello gurus, I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup is shown below: #!/bin/ksh db2... (3 Replies)
Discussion started by: okonita
3 Replies
gst-xmllaunch-0.8(1)						   User Commands					      gst-xmllaunch-0.8(1)

NAME
gst-xmllaunch-0.8, gst-xmllaunch - build and run a GStreamer pipeline from an XML serialization SYNOPSIS
gst-xmllaunch-0.8 [--exclude=type1,type2,...] [--iterations=int] [--no-fault] [-output-=file] [--tags] [--trace] [--verbose] [gst-std- options] XML-file [element.property=value...] gst-xmllaunch [--exclude=type1,type2,...] [--iterations=int] [--no-fault] [-output-=file] [--tags] [--trace] [--verbose] [gst-std-options] [--gst-list-mm] [--gst-mm=string] [--print] XML-file [element.property=value...] DESCRIPTION
gst-xmllaunch-0.8 builds and runs a basic GStreamer pipeline, loading it from an XML description. You can produce the XML description using gst-launch with the -o option or by calling gst_xml_write_file() in your own application. You can set XML-file to "-", to read from stdin. XML-file can also be a URI, thanks to libxml. See gst-launch(1) for the syntax to set element names, and run gst-inspect to see what properties various elements have. gst-xmllaunch is a wrapper script that runs the latest installed version of gst-xmllaunch-X.X. For example, if both gst-xmllaunch-0.7 and gst-xmllaunch-0.8 are installed on your system, gst-xmllaunch runs gst-xmllaunch-0.8. OPTIONS
The following options are supported by gst-xmllaunch-0.8 and gst-xmllaunch: --exclude=type1,type2,... Do not output status information of specified type. You can also use -X to specify this option. --iterations=int Number of times to iterate pipeline. You can also use -i to specify this option. --no-fault Do not install a fault handler. You can also use -f to specify this option. -output-=file Save XML representation of pipeline to file, then exit. You can also use -o to specify this option. --tags Output tags, also known as metadata. You can also use -t to specify this option. --trace Print alloc trace, if enabled at compile time. You can also use -T to specify this option. --verbose Output status information and property notifications. You can also use -v to specify this option. gst-std-options Standard options available for use with most GStreamer applications. See gst-std-options(5) for more information. The following options are supported by gst-xmllaunch only: --gst-list-mm List found major/minor versions. This option displays the versions that are available. --gst-mm=string Force major/minor version. This option enables you to specify a specific version to run, if you do not want to run the default version. --print Print wrapped command line. This option displays the command that will be run, and then runs the command. EXAMPLES
Example 1: Setting the Location Property of the Element filesrc0 to "music.mp3" example% gst-xmllaunch-0.8 my-pipeline.xml filesrc0.location=music.mp3 Example 2: Running the Wrapper Script and Displaying the Command Name example% gst-xmllaunch --print /usr/bin/gst-xmllaunch-0.8 FILES
The following files are used by this application: /usr/bin/gst-xmllaunch-0Executable to build and run a GStreamer pipeline from an XML serialization /usr/bin/gst-xmllaunch Wrapper script that runs the latest installed version of gst-xmllaunch-X.X ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-media | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
gst-complete(1), gst-compprep(1), gst-feedback(1), gst-inspect(1), gst-launch(1), gst-launch-ext(1), gst-md5sum(1), gst-register(1), gst- thumbnail(1), gst-typefind(1), gst-xmlinspect(1), gstreamer-properties(1), libgstreamer-0.8(3), libgstgetbits(3), gst-std-options(5) NOTES
Original man page written by the GStreamer team at http://gstreamer.net/. Updated by Brian Cameron, Sun Microsystems Inc., 2004. SunOS 5.10 14 Oct 2004 gst-xmllaunch-0.8(1)
All times are GMT -4. The time now is 03:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy