3 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am using : << cut / cut to comment out block of code.
Works fine on few lines of script, then it gives me this cryptic error when I try to comment out about 80 lines.
The "warning " is at last line of script.
done < results
169 echo "END read all positioning parameters"
170... (8 Replies)
Discussion started by: annacreek
8 Replies
2. UNIX for Beginners Questions & Answers
I'm a complete beginner in UNIX (and not a computer science student either), just undergoing a tutoring course. Trying to replicate the instructions on my own I directed output of the ls listing command (lists all files of my home directory ) to My_dir.tsv file (see the screenshot) to make use of... (9 Replies)
Discussion started by: scrutinizerix
9 Replies
3. Shell Programming and Scripting
Hi
Can anyone what I am doing wrong while using cut command.
for f in *.log
do
logfilename=$f
Log "Log file Name: $logfilename"
logfile1=`basename $logfilename .log`
flength=${#logfile1}
Log "file length $flength"
from_length=$(($flength - 15))
Log "from... (2 Replies)
Discussion started by: dgmm
2 Replies
LEARN ABOUT ULTRIX
xstorebytes
XStoreBytes(3X11) MIT X11R4 XStoreBytes(3X11)
Name
XStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer, XRotateBuffers - manipulate cut and paste buffers
Syntax
XStoreBytes(display, bytes, nbytes)
Display *display;
char *bytes;
int nbytes;
XStoreBuffer(display, bytes, nbytes, buffer)
Display *display;
char *bytes;
int nbytes;
int buffer;
char *XFetchBytes(display, nbytes_return)
Display *display;
int *nbytes_return;
char *XFetchBuffer(display, nbytes_return, buffer)
Display *display;
int *nbytes_return;
int buffer;
XRotateBuffers(display, rotate)
Display *display;
int rotate;
Arguments
buffer Specifies the buffer in which you want to store the bytes or from which you want the stored data returned.
bytes Specifies the bytes, which are not necessarily ASCII or null-terminated.
display Specifies the connection to the X server.
nbytes Specifies the number of bytes to be stored.
nbytes_return
Returns the number of bytes in the buffer.
rotate Specifies how much to rotate the cut buffers.
Description
Note that the cut buffer's contents need not be text, so zero bytes are not special. The cut buffer's contents can be retrieved later by
any client calling
can generate a error.
If the property for the buffer has never been created, a error results.
can generate and errors.
The function returns the number of bytes in the nbytes_return argument, if the buffer contains data. Otherwise, the function returns NULL
and sets nbytes to 0. The appropriate amount of storage is allocated and the pointer returned. The client must free this storage when
finished with it by calling Note that the cut buffer does not necessarily contain text, so it may contain embedded zero bytes and may not
terminate with a null byte.
The function returns zero to the nbytes_return argument if there is no data in the buffer.
can generate a error.
The function rotates the cut buffers, such that buffer 0 becomes buffer n, buffer 1 becomes n + 1 mod 8, and so on. This cut buffer num-
bering is global to the display. Note that generates errors if any of the eight buffers have not been created.
can generate a error.
Diagnostics
The server failed to allocate the requested resource or server memory.
A value for an Atom argument does not name a defined Atom.
Some argument or pair of arguments has the correct type and range but fails
to match in some other way required by the request.
Some numeric value falls outside the range of values accepted by the request.
Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument
defined as a set of alternatives can generate this error.
See Also
XFree(3X11)
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XStoreBytes(3X11)