10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I use things like this a lot in ksh and bash, but lately bash has been printing the command for every loop:
... | while read f
do
if
then
echo Differ "$f"
fi
done
How to prevent this? (5 Replies)
Discussion started by: DGPickett
5 Replies
2. Shell Programming and Scripting
I have been trying to use read in a script with issues so I tried some things on the command line.
$ echo "testing 123" | read x ; echo $xand
$ echo "testing 123" | read -r x ; echo $xare only producing any output after being invoked the first time after rebooting the machine. I also got into... (14 Replies)
Discussion started by: Michael Stora
14 Replies
3. Shell Programming and Scripting
Greetings.
I have files that contains eleven fields in the file name. Each file has a specific meaning. My job is to list each file name and load the info into a database table for reporting.
My awk code does this (files have VER suffix):
find . -name "*.VER" -exec ls '{}' ';' -printf... (2 Replies)
Discussion started by: alan
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
ls -l displays the long listing of a file in 8 fields.
Query:
------
Does ls -l display the filename size in KB or MB or GB?
-rwxrwxr-x 1 xx dba 655 May 22 06:27 time
Here 655 is KB or MB or GB?
Many thanks. (2 Replies)
Discussion started by: venkatesht
2 Replies
5. Solaris
A new x86 server was installed with 16G of memory. The swap space assigned in the prtvtoc is also 16G. But after the installation of the OS and verifying, noticed df -k output for swap shows as 30G. Other systems do not have this characteristic. Whats wrong in here?:eek: (4 Replies)
Discussion started by: incredible
4 Replies
6. AIX
Hello. I have an AIX machine at 6100-00.
We had some strange activity since filling up /tmp. One symptom is that who -r displays no output. It doesn't hang just no output is displayed.
We are going to boot the machine, but prior to that I'd like to dig a bit to see what may be causing the... (0 Replies)
Discussion started by: maficdan
0 Replies
7. Linux
hiii,
in many of the linux machines i have tried this but the result is the same everywhere.
if there are double letters in a hostname then that is displayed as single letter.
e.g. if hostname is set to nepttune then login into the shell will display :
NEPTUNE(admin)@/
$ hostname... (15 Replies)
Discussion started by: shamik
15 Replies
8. HP-UX
Hello All!
Where I work we have C3600's that have a video cards that have both DVI and Regular RBG type monitor ports on them. My question is: is it possible to spread my desktop across two monitors that are plugged into the one card much like you can do with NVIDIA software like NVIEW for... (0 Replies)
Discussion started by: giftedone
0 Replies
9. UNIX for Dummies Questions & Answers
I have a TV and a monitor hooked up to my box. Right now the system is displaying all the information on the TV instead of the monitor, obviously I want to switch this, as the TV is very impracticle for everything other than watching movies.
I thought I remembered a command I used to use that... (2 Replies)
Discussion started by: Synbios
2 Replies
10. UNIX for Advanced & Expert Users
Hi,
I am working on a custom made FTP application. The application is behaving erratically for the "ls" command. Wild card character passed to the "ls" command (like "ls *temp") is giving inconsistent results. On debuggin I have found that the "ls" command is implemented as shown below in the... (7 Replies)
Discussion started by: diganta
7 Replies
ImageByteOrder(3X11) MIT X11R4 ImageByteOrder(3X11)
Name
ImageByteOrder, BitmapBitOrder, BitmapPad, BitmapUnit, DisplayHeight, DisplayHeightMM, DisplayWidth, DisplayWidthMM, XListPixmapFormats,
XPixmapFormatValues - image format functions and macros
Syntax
XPixmapFormatValues *XListPixmapFormats(display, count_return)
Display *display;
int *count_return;
ImageByteOrder(display)
BitmapBitOrder(display)
BitmapPad(display)
BitmapUnit(display)
DisplayHeight(display, screen_number)
DisplayHeightMM(display, screen_number)
DisplayWidth(display, screen_number)
DisplayWidthMM(display, screen_number)
Arguments
display Specifies the connection to the X server.
count_return
Returns the number of pixmap formats that are supported by the display.
screen_number
Specifies the appropriate screen number on the host server.
Description
The function returns an array of structures that describe the types of Z format images that are supported by the specified display. If
insufficient memory is available, returns NULL. To free the allocated storage for the structures, use
The macro specifies the required byte order for images for each scanline unit in XY format (bitmap) or for each pixel value in Z format.
The macro returns or to indicate whether the leftmost bit in the bitmap as displayed on the screen is the least or most significant bit in
the unit.
The macro returns the number of bits that each scanline must be padded.
The macro returns the size of a bitmap's scanline unit in bits.
The macro returns the height of the specified screen in pixels.
The macro returns the height of the specified screen in millimeters.
The macro returns the width of the screen in pixels.
The macro returns the width of the specified screen in millimeters.
Structures
The structure provides an interface to the pixmap format information that is returned at the time of a connection setup. It contains:
typedef struct {
int depth;
int bits_per_pixel;
int scanline_pad;
} XPixmapFormatValues;
See Also
AllPlanes(3X11), BlackPixelOfScreen(3X11), IsCursorKey(3X11), XFree(3X11)
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
ImageByteOrder(3X11)