Is there a way to access the redirected file inside the script. Here is what the command line looks like:
Code:
$ shar * > archive_file.arc
I know I can't access the name of archive_file.arc with positional parameters like $1, $2.. Is there any way to figure out what file the output of the present script is being redirected?
Hi,
I have a shell script in which there is a file
conn_$temp
where $temp has the pid of the shell script.
in this shell script i have an embedded awk script that must read the file
while ((getline < "conn_$temp") > 0)
However due to the "$temp" in the file name, the awk script is... (6 Replies)
I have to confirm that an engine was not able to run. In the output below you see that it indeed got errors, but it didn't send those messages to the output file. When I run the same thing with a different executable it works. So does this mean something in the executable could cause it not to... (7 Replies)
I have a question. I am not even sure if it can be done. But if it could be then I would needs a lot of help. ok, I work for a software company and we have a store. The store log files are in a unix server and the log file is dynamically updated everytime some error occurs in the store. So we often... (1 Reply)
I have a file (email) containing email addresses.
I have a second file (terms) that contains simple regular expressions and words/characters. Here are some examples:
\.trainee
\.group
\.web
I want to go through email and delete lines containing the expressions/words from terms and write... (1 Reply)
Hi All,
I am having a script which calculate checks the input feed and perform some function. When i am executing this script i am redirecting this to a output file. I want to know the redirected output file name inside my scripts. Is there is any way to get that .
like the same way we... (4 Replies)
Hi,
GetName()
{
if
then
echo " Please enter the name: "
read Name
tempvar=0
while read line
do
if
then
tempvar=`expr $tempvar + 1`
echo $tempvar
... (10 Replies)
Hi
echo " username "
read username
echo "password"
stty -echo
read password
stty echo
through read i am taking standard input and redirecign them to a file
echo " username=${username}/${password} " > file.lst
now from the same shell script i want to delete the password (i.e... (4 Replies)
Discussion started by: rosheks
4 Replies
LEARN ABOUT HPUX
xfillarc
XFillArc() XFillArc()
Name
XFillArc - fill an arc.
Synopsis
XFillArc(display, drawable, gc, x, y, width, height, angle1, angle2)
Display *display;
Drawable drawable;
GC gc;
int x, y;
unsigned int width, height;
int angle1, angle2;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
drawable Specifies the drawable.
gc Specifies the graphics context.
x Specify the x and y coordinates of the upper-left corner of the bounding box containing the arc, relative to the origin of the
y drawable.
width Specify the width and height in pixels. These are the major and minor axes of the arc.
height
angle1 Specifies the start of the arc relative to the three-o'clock position from the center. Angles are specified in 64ths of degrees.
angle2 Specifies the path and extent of the arc relative to the start of the arc. Angles are specified in 64ths of degrees.
Description
XFillArc() draws a filled arc. The x, y, width, and height arguments specify the bounding box for the arc. See XDrawArc() for the
description of how this bounding box is used to compute the arc. Some, but not all, of the pixels drawn with XDrawArc() will be drawn by
XFillArc() with the same arguments. See XFillRectangle() for an example of the differences in pixels drawn by the draw and fill routines.
The arc forms one boundary of the area to be filled. The other boundary is determined by the arc_mode in the GC. If the arc_mode in the
GC is ArcChord, the single line segment joining the endpoints of the arc is used. If ArcPieSlice, the two line segments joining the end-
points of the arc with the center point are used.
XFillArc() uses these graphics context components: function, plane_mask, fill_style, arc_mode, subwindow_mode, clip_x_origin, clip_y_ori-
gin, and clip_mask. This function also uses these graphics context mode-dependent components: foreground, background, tile, stipple,
ts_x_origin, and ts_y_
origin.
For more information, see Volume One, Chapter 6, Drawing Graphics and Text, and Chapter 5, The Graphics Context.
Errors
BadDrawable
BadGC
BadMatch
See Also
XClearArea(), XClearWindow(), XCopyArea(), XCopyPlane(), XDraw, XDrawArc(), XDrawArcs(), XDrawFilled(), XDrawLine(), XDrawLines(), XDraw-
Point(), XDrawPoints(), XDrawRectangle(), XDrawRectangles(), XDrawSegments(), XFillArcs(), XFillPolygon(), XFillRectangle(), XFillRectan-
gles().
Xlib - Drawing Primitives XFillArc()