06-30-2017
Hello Aia,
Thanks for your reply
Your code also gives desired output.
Kind regards
Boris
10 More Discussions You Might Find Interesting
1. Programming
Hi,
From a Unix book, i'd found that the way to list files in a directory.
But those file info are all not shown, wat is shown is only the file name.
Can anyone pls teach me how to show the file details?
(etc file size, read/write permission, modified date)
my code:
Dir *dirp;
struct... (3 Replies)
Discussion started by: AkumaTay
3 Replies
2. UNIX for Dummies Questions & Answers
I am trying to find a way to check the current status of a file. Such as some cron job processes are dependent on the completion of others. if a file is currently being accessed / modified or simply open state I will wait until it is done being processed before attempting the next process on that... (3 Replies)
Discussion started by: Gary Dunn
3 Replies
3. UNIX for Dummies Questions & Answers
I know this is prob a simple question but anyway here goes. I want to find out the owner of a certain file. I also want to find out what permissions that owner has. Is their any command that is similair to file in that it can tell men this specfic information about a file the way file tells you... (1 Reply)
Discussion started by: Quesa
1 Replies
4. Solaris
My server with Solaris OS and SUNW,Sun-Fire-V240 give me core file like below:
----------------- lwp# 1 / thread# 1 --------------------
fed40e50 _pause (1, 0, fed82000, ffbfe9bc, fedda780, 0) + 8
ff1a22b0 __1cLMTlsSigHdlrEwait6Mb_v_ (1013d0, 1, 1, 0, 0, 0) + 58
0003d274 main (1,... (3 Replies)
Discussion started by: fredginting
3 Replies
5. Shell Programming and Scripting
I'm trying to write a script that will look in an /exports folder for the oldest export file and move it to a /staging folder. "Oldest" in this case is actually determined by date information embedded in the file names themselves.
Also, the script should only move a file from /exports to... (6 Replies)
Discussion started by: nikosey
6 Replies
6. Shell Programming and Scripting
Hello.
I can't figure out how to see file size info here.
Can someone comment on this ?
bash-3.2$ uname -a
HP-UX fms-a B.11.31 U ia64 1717699127 unlimited-user license
bash-3.2$ pwd
/u01/app/oracle/oradata/fms
bash-3.2$ ls -l fms_tools_1.dbf
lrwxr-xr-x 1 root sys 21... (2 Replies)
Discussion started by: tonijel
2 Replies
7. Shell Programming and Scripting
I'm trying to clean up my samba share and need to print the found file or print the path of the image it tried to searched for. So far I have this but can't seem to get the logic right. Can anyone help point me in the right direction?
for FILE in `cat list`; do
if ;
then
... (1 Reply)
Discussion started by: overkill
1 Replies
8. Shell Programming and Scripting
Hi, long time reader, first time poster.
I've done some searching so please if this is a repeated post excuse the duplicate, but what I have are two files roughly like so:
File 1:
A W
B X
C Y
D Z
File 2:
A 1
C 2
D 3
And what I would like to get out is... (4 Replies)
Discussion started by: wallysb01
4 Replies
9. Shell Programming and Scripting
I have a code fragment
#dosomething
(
#do many things
) |tee -a zzz.log
#dosomething
I want a varialbe var
if var =1, print the info in (#do many things ) to console, if var=0, not print the info to console (1 Reply)
Discussion started by: yanglei_fage
1 Replies
10. Shell Programming and Scripting
Hi,
I have a .csv file that contains a variety of fields for 60 clients: USERNAME, PASSWORD, and COMMENTS. I have a template file which contains a great deal of data for each client and has the fields USERNAME, PASSWORD, and COMMENTS that has to be filled with the values of USERNAME,... (1 Reply)
Discussion started by: mojoman
1 Replies
LEARN ABOUT CENTOS
xcb_randr_get_output_info
xcb_randr_get_output_info(3) XCB Requests xcb_randr_get_output_info(3)
NAME
xcb_randr_get_output_info -
SYNOPSIS
#include <xcb/randr.h>
Request function
xcb_randr_get_output_info_cookie_t xcb_randr_get_output_info(xcb_connection_t *conn, xcb_randr_output_t output,
xcb_timestamp_t config_timestamp);
Reply datastructure
typedef struct xcb_randr_get_output_info_reply_t {
uint8_t response_type;
uint8_t status;
uint16_t sequence;
uint32_t length;
xcb_timestamp_t timestamp;
xcb_randr_crtc_t crtc;
uint32_t mm_width;
uint32_t mm_height;
uint8_t connection;
uint8_t subpixel_order;
uint16_t num_crtcs;
uint16_t num_modes;
uint16_t num_preferred;
uint16_t num_clones;
uint16_t name_len;
} xcb_randr_get_output_info_reply_t;
Reply function
xcb_randr_get_output_info_reply_t *xcb_randr_get_output_info_reply(xcb_connection_t *conn, xcb_randr_get_output_info_cookie_t cookie,
xcb_generic_error_t **e);
Reply accessors
xcb_randr_crtc_t *xcb_randr_get_output_info_crtcs(const xcb_randr_get_output_info_request_t *reply);
int xcb_randr_get_output_info_crtcs_length(const xcb_randr_get_output_info_reply_t *reply);
xcb_generic_iterator_t xcb_randr_get_output_info_crtcs_end(const xcb_randr_get_output_info_reply_t *reply);
xcb_randr_mode_t *xcb_randr_get_output_info_modes(const xcb_randr_get_output_info_request_t *reply);
int xcb_randr_get_output_info_modes_length(const xcb_randr_get_output_info_reply_t *reply);
xcb_generic_iterator_t xcb_randr_get_output_info_modes_end(const xcb_randr_get_output_info_reply_t *reply);
xcb_randr_output_t *xcb_randr_get_output_info_clones(const xcb_randr_get_output_info_request_t *reply);
int xcb_randr_get_output_info_clones_length(const xcb_randr_get_output_info_reply_t *reply);
xcb_generic_iterator_t xcb_randr_get_output_info_clones_end(const xcb_randr_get_output_info_reply_t *reply);
uint8_t *xcb_randr_get_output_info_name(const xcb_randr_get_output_info_request_t *reply);
int xcb_randr_get_output_info_name_length(const xcb_randr_get_output_info_reply_t *reply);
xcb_generic_iterator_t xcb_randr_get_output_info_name_end(const xcb_randr_get_output_info_reply_t *reply);
REQUEST ARGUMENTS
conn The XCB connection to X11.
output TODO: NOT YET DOCUMENTED.
config_timestamp
TODO: NOT YET DOCUMENTED.
REPLY FIELDS
response_type
The type of this reply, in this case XCB_RANDR_GET_OUTPUT_INFO. This field is also present in the xcb_generic_reply_t and can be
used to tell replies apart from each other.
sequence The sequence number of the last request processed by the X11 server.
length The length of the reply, in words (a word is 4 bytes).
status TODO: NOT YET DOCUMENTED.
timestamp TODO: NOT YET DOCUMENTED.
crtc TODO: NOT YET DOCUMENTED.
mm_width TODO: NOT YET DOCUMENTED.
mm_height TODO: NOT YET DOCUMENTED.
connection
TODO: NOT YET DOCUMENTED.
subpixel_order
TODO: NOT YET DOCUMENTED.
num_crtcs TODO: NOT YET DOCUMENTED.
num_modes TODO: NOT YET DOCUMENTED.
num_preferred
TODO: NOT YET DOCUMENTED.
num_clones
TODO: NOT YET DOCUMENTED.
name_len TODO: NOT YET DOCUMENTED.
DESCRIPTION
RETURN VALUE
Returns an xcb_randr_get_output_info_cookie_t. Errors have to be handled when calling the reply function xcb_randr_get_output_info_reply.
If you want to handle errors in the event loop instead, use xcb_randr_get_output_info_unchecked. See xcb-requests(3) for details.
ERRORS
This request does never generate any errors.
SEE ALSO
AUTHOR
Generated from randr.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
XCB
2014-06-10 xcb_randr_get_output_info(3)