with that block of code im trying to make the script search for a region that a user entered which is $1 and see if the region that user entered exists or not
but when I run my script showtime with a wrong region it does not show the error message.
Last edited by Corona688; 10-15-2012 at 12:36 PM..
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 HPUX
xunionrectwithregion
XUnionRectWithRegion() XUnionRectWithRegion()
Name
XUnionRectWithRegion - add a rectangle to a region.
Synopsis
XUnionRectWithRegion(rectangle, src_region, dest_region_return)
XRectangle *rectangle;
Region src_region;
Region dest_region_return;
Arguments
rectangle Specifies the rectangle to add to the region.
src_region
Specifies the source region to be used.
dest_region_return
Specifies the resulting region. May be the same as src_region.
Description
XUnionRectWithRegion() computes the destination region from a union of the specified rectangle and the specified source region. The source
and destination regions may be the same.
One common application of this function is to simplify the combining of the rectangles specified in contiguous Expose events into a
clip_mask in the GC, thus restricting the redrawn areas to the exposed rectangles. Use XUnionRectWithRegion() to combine the rectangle in
each Expose event into a region, then call XSetRegion(). XSetRegion() sets the clip_mask in a GC to the region. In this case, src_region
and dest_region_return would be the same region.
If src_region and dest_region_return are not the same region, src_region is copied to dest_region_return before the rectangle is added to
dest_region_return.
For more information on regions, see Volume One, Chapter 6, Drawing Graphics and Text.
Structures
typedef struct {
short x, y;
unsigned short width, height;
} XRectangle;
Region is a pointer to an opaque data type.
See Also
XClipBox(), XDestroyRegion(), XEmptyRegion(), XEqualRegion(), XIntersectRegion(), XOffsetRegion(), XPointInRegion(), XPolygonRegion(),
XRectInRegion(), XSetRegion(), XShrinkRegion(), XSubtractRegion(), XUnionRegion(), XXorRegion().
Xlib - Resource Manager XUnionRectWithRegion()