Could someone please advise on a good way to implement error checking in a script?
i am taking input from a file, iserting it's values into two commands and sending the output of each to seperate log files. i need to check those log files for for an occurance of 'error', stop the command if... (3 Replies)
The rise of Video web stimulates more intuitive video feeling of large people, and makes video downloading becomes a popular trend in web times, meanwhile, more and more downloading problems arises correspondingly, in which the first trouble is slow downloading speed and incomplete downloading. It... (0 Replies)
Hello,
I've got next problem:
I want to examine at the beginning of a script in an if loop that:
1. Is there 4 parameters given
2. If first state is true then: is there switches -e and -d?
3. At the end, how can i indentify them as variebles regardlees to its order.
I was thinking like... (2 Replies)
Hello
I have srv RHEL5, file system UTDM (EMC DiskXtender Unix/Linux File System Manager 3.5 & EMC Centera).
it all works under the scheme: have disk is formatted with a file system UTDM, drive open network - NFS, it write data, then migrate the data in the repository - EMC Centera.
There are... (0 Replies)
I am trying to check the return status of a command thats encapsulated
in an <<EOF
#!/bin/ksh
set -x
xxx()
{
set -x
ls -lt /tmp/jdlkewjdlkewjdlkewjdlewjdlew<<EOT
ret=$?
EOT
echo "ret=$ret"
} >>$LOG 2>&1
LOG=/tmp/t2.out
rm -rf $LOG
echo "Starting process `date... (2 Replies)
Hi,
We have a user who cannot connect to the aix system anymore with hummingbird exceed.
Our unix servers are aix 5.3. She is running windows xp and using hummingbird 12.
She used to not have any problem, but now when she tries to use xstart she gets an error 'unable to connect to host using... (0 Replies)
HI. I was wondering if anyone can assist me in this. I have an HP-UX 11.31 server at work which keeps expiring my NIS password. I cannot log in unless I use root access. It worked before and I think some of the settings changed since then. My boss has told me that since we're taking some... (1 Reply)
Hi All,
I am trying to check if two variables have value assigned to it.
i am doing it like
if ]
then
echo "Please specify either single hostname or host file for the report"
usage
exit
fi
But its not working for it.Even i specify values for both variables it dont go... (6 Replies)
I have a bash script where I pass an argument
./chris.bash "\argv Test"
I want to detect if the user supplied \argv at the start of the argument (3 Replies)
Morning ..
I have a file with approximately 1000 lines. I want to check that the file contains, for example, 100 lines.
Something like whats given below is ugly. And even if I create a function I have to call it 100 times.
I may need to look through multiple files at times.
Is there a... (4 Replies)
Discussion started by: sumguy
4 Replies
LEARN ABOUT REDHAT
xvgetstill
XvGetStill(3X)XvGetStill(3X)Name
XvGetStill - capture a single frame of video from a drawable
Syntax
include Xvlib.h
XvGetStill(dpy, port, d, gc, vx, vy, vw, vh, dx, dy, dw, dh)
register Display *dpy;
XvPortID port;
Drawable d;
GC gc;
int vx, vy, dx, dy;
unsigned int vw, vh;
unsigned int dw, dh;
Arguments
dpy Specifies the display screen on which the Xv Server is to accept requests from Xv clients. If the display option is not
specified, Xv uses the display screen specified by your DISPLAY environment variable. The display option has the format
hostname:number. Using two colons (::) instead of one (:) indicates that DECnet is to be used for transport.
port Defines the port to which the still is outputed.
d Defines the drawable from which the still is to be captured. Pixmaps are currently not supported.
gc Defines the graphical context. GC components are: subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
vx,vy,vw,vh Define the location and size of the destination video region into which the still is to be written. vx and vy define the x
and y coordinates of the upper-left corner of the video region; vw and vh define the width and height, in pixels, of the
video region.
dx,dy,dw,dh Define the location and size of the source drawable from which the still image is to be captured. dx and dy define the x
and y coordinates of the upper-left corner of the drawable region; dw and dh define the width and height, in pixels, of the
drawable region.
Description
captures a single frame of video from a drawable. The position and size of the destination (video) rectangle is specified by vx, vy, vw,
and vh. The position and size of the source (drawable) rectangle is specified by dx, dy, dw, and dh.
Drawable data is clipped to the bounds of the drawable, scaled to the requested video region size (or the closest size supported) and
clipped to the bounds of the video encoding. The contents of any region not updated with drawable data is undefined.
If the port is grabbed by another client, this request is ignored, and an XvVideoNotify event with detail XvBusy is generated for the draw-
able.
Returned Values
[Success]
Returned if XvGetStill(3X) completed successfully.
[XvBadExtension]
Returned if the Xv extension is unavailable.
[XvBadAlloc]
Returned if XvGetStill(3X) failed to allocate memory to process the request.
Diagnostics
[XvBadPort]
Generated if the requested port does not exist.
[BadDrawable]
Generated if the requested drawable does not exist.
[BadGC] Generated if the requested graphics context does not exist.
[BadAlloc]
Generated if there were insufficient resources to process the request.
See AlsoXvPutStill(3X), XvGetVideo(3X), XvPutVideo(3X), XvVideoNotify(3X)XFree86 Version Version 4.3.0 XvGetStill(3X)