02-26-2013
Thank you so much for your very clear reply! That was very helpful.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
if i have a program (example admintool), if i want to keep a log of what i did in admintool,
can i do this admintool > admintool_log.
i have tried but the system just waits there....
then i did a kill and see the file.
the file has the main menu screen...
basically, i want to keep a log... (3 Replies)
Discussion started by: yls177
3 Replies
2. Shell Programming and Scripting
I wanted to know the format everyone uses for cfg files that are called by shell programs. I do mostly sh and ksh scripts and many times I'm modifying an existing script to do another task.
Recently I have been making my scripts more generic and using configuration files to hold uniq details.... (3 Replies)
Discussion started by: tomas
3 Replies
3. Shell Programming and Scripting
Hi All,
I have encountered a problem,please help me.
I have a script in which multiple processes are writing on to the same file .
How should I stop this , I mean lock mechanism can be implemented or we can write the at different files and then concatenate the files.
What would be a better... (1 Reply)
Discussion started by: Sayantan
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
i want to call two programs simultaneously from a currently running program so as to distribute the job and fasten the speed.
As of now I call the programs one after the other within the main program.
e.g.
`perl A.pl`;
`perl B.pl`;
how can I run the two paralelly?
urgent ... please... (1 Reply)
Discussion started by: vipinccmb
1 Replies
5. UNIX for Dummies Questions & Answers
I was curious how to tell which programs are accessing a file (libobjc.A.dylib) in /usr/lib
This file seems to be the culprit in a bunch of Safari crashes, and I just wanted to know if and what other programs use it.
Also, I was curious what a good way to find out what files are being written... (4 Replies)
Discussion started by: glev2005
4 Replies
6. UNIX for Dummies Questions & Answers
Are the programs written on schedulers ,thread library , process management, memory management, et al called systems programs ? How are they different from the programs that implement functions like open() , printf() , scanf() , read() .. they have a prefix sys_open, sys_close, sys_read etc , right... (1 Reply)
Discussion started by: vishwamitra
1 Replies
7. Programming
Flow of program:
C based CGI is used
CGI1:
-Gets called when user hits upload button(submit) ie form action = CGI1
-Does the file upload (copy to a directory etc)
JS, Ajax fucntion:
-A JS function is called when user hits upload button
-The JS function opens an Ajax request for CGI2... (8 Replies)
Discussion started by: xs2punit
8 Replies
8. Shell Programming and Scripting
Hi,
I'd like to redirect the STDOUT output from my script to a file and simultaneously display it at a console.
I've tried this command:
myscript.sh | tail -f
However, it doesn't end after the script finishes running
I've also tried this:
myscript.sh | tee ~/results.txt
But it writes... (3 Replies)
Discussion started by: wenclu
3 Replies
9. UNIX for Dummies Questions & Answers
Hey guys,
Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries.
However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Discussion started by: syncmaster
2 Replies
10. Shell Programming and Scripting
Hello Team-
we would like to implement an approach which has to write the log file simultaneously
when .sql file is executing by Unix process. At present,it is writing the log file
once the process is completed. I've tested the current process with the below
approaches and none of them... (1 Reply)
Discussion started by: Hima_B
1 Replies
LEARN ABOUT CENTOS
xcb_randr_get_crtc_gamma_green_end
xcb_randr_get_crtc_gamma(3) XCB Requests xcb_randr_get_crtc_gamma(3)
NAME
xcb_randr_get_crtc_gamma -
SYNOPSIS
#include <xcb/randr.h>
Request function
xcb_randr_get_crtc_gamma_cookie_t xcb_randr_get_crtc_gamma(xcb_connection_t *conn, xcb_randr_crtc_t crtc);
Reply datastructure
typedef struct xcb_randr_get_crtc_gamma_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t size;
uint8_t pad1[22];
} xcb_randr_get_crtc_gamma_reply_t;
Reply function
xcb_randr_get_crtc_gamma_reply_t *xcb_randr_get_crtc_gamma_reply(xcb_connection_t *conn, xcb_randr_get_crtc_gamma_cookie_t cookie,
xcb_generic_error_t **e);
Reply accessors
uint16_t *xcb_randr_get_crtc_gamma_red(const xcb_randr_get_crtc_gamma_request_t *reply);
int xcb_randr_get_crtc_gamma_red_length(const xcb_randr_get_crtc_gamma_reply_t *reply);
xcb_generic_iterator_t xcb_randr_get_crtc_gamma_red_end(const xcb_randr_get_crtc_gamma_reply_t *reply);
uint16_t *xcb_randr_get_crtc_gamma_green(const xcb_randr_get_crtc_gamma_request_t *reply);
int xcb_randr_get_crtc_gamma_green_length(const xcb_randr_get_crtc_gamma_reply_t *reply);
xcb_generic_iterator_t xcb_randr_get_crtc_gamma_green_end(const xcb_randr_get_crtc_gamma_reply_t *reply);
uint16_t *xcb_randr_get_crtc_gamma_blue(const xcb_randr_get_crtc_gamma_request_t *reply);
int xcb_randr_get_crtc_gamma_blue_length(const xcb_randr_get_crtc_gamma_reply_t *reply);
xcb_generic_iterator_t xcb_randr_get_crtc_gamma_blue_end(const xcb_randr_get_crtc_gamma_reply_t *reply);
REQUEST ARGUMENTS
conn The XCB connection to X11.
crtc TODO: NOT YET DOCUMENTED.
REPLY FIELDS
response_type
The type of this reply, in this case XCB_RANDR_GET_CRTC_GAMMA. 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).
size TODO: NOT YET DOCUMENTED.
DESCRIPTION
RETURN VALUE
Returns an xcb_randr_get_crtc_gamma_cookie_t. Errors have to be handled when calling the reply function xcb_randr_get_crtc_gamma_reply.
If you want to handle errors in the event loop instead, use xcb_randr_get_crtc_gamma_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_crtc_gamma(3)