Dear All,
Please advice about this issue.
when i run this line in a script if && || && || && if i enter $x = test3 and $y = test1 the If condition apply while it should not
Best Regards (2 Replies)
I have been using the if statement in csh like this
if ( $opt1 == 1 ) then
.....
elseif ( $opt2 == 1 ) then
......
endif
Seems to work, but got
Badly placed ()'s.
When I used a space in the elseif, a space between the 'else' and the 'if' it worked (0 Replies)
Hi all,
This is my first post in this forum, can i request you to guide, where i am going wrong with the error below.
34: Syntax error: "fi" unexpected (expecting "then")
#!/bin/sh
argCount=0
mysql_path=$USER_INSTALL_DIR$
for i in $*; do
/A argCount+=1
done
if ;then
echo... (2 Replies)
Hi,
Ihave shifted this thread which i posted in linux forum to here if i am fault please correct me.
When i excute this below script i am getting the follwing error can any one please look into it for persual.
./sample_oracle_tradescope.sh: 25: showDEFAULTUsage: not found
... (6 Replies)
Hi,
My requirement is to check wheather some csv files have mandatory columns value as empty if empty log a error message or set a flag.
The problem here is that the column number varies for different CSVs hence we can not hardcode $1 or $3 like this in the awk command hence we are reading a... (5 Replies)
Experts:
LINE1 :This is line one The FIRST line of the file.
LINE2 :This is line two
LINE3 :This is line three with 8 fileds
LINE4 :This is line four
LINE5 :This is line five
LINE6 :This is line six with 8 fileds
I want to delete line 1, and then process the file and want to print lines... (2 Replies)
Hi
I am reading a book about Fortran 90 and I write the following code, to test my understanding of the first chapter. I have a problem with the last section of the code with deals with an IF, ELSEIF, and GOTO statements. Here is my Code
PROGRAM sim
! This code is used to solve two... (3 Replies)
Discussion started by: faizlo
3 Replies
LEARN ABOUT CENTOS
xcb_set_selection_owner
xcb_set_selection_owner(3) XCB Requests xcb_set_selection_owner(3)NAME
xcb_set_selection_owner - Sets the owner of a selection
SYNOPSIS
#include <xcb/xproto.h>
Request function
xcb_void_cookie_t xcb_set_selection_owner(xcb_connection_t *conn, xcb_window_t owner, xcb_atom_t selection, xcb_timestamp_t time);
REQUEST ARGUMENTS
conn The XCB connection to X11.
owner The new owner of the selection.
The special value XCB_NONE means that the selection will have no owner.
selection The selection.
time Timestamp to avoid race conditions when running X over the network.
The selection will not be changed if time is earlier than the current last-change time of the selection or is later than the cur-
rent X server time. Otherwise, the last-change time is set to the specified time.
The special value XCB_CURRENT_TIME will be replaced with the current server time.
DESCRIPTION
Makes window the owner of the selection selection and updates the last-change time of the specified selection.
TODO: briefly explain what a selection is.
RETURN VALUE
Returns an xcb_void_cookie_t. Errors (if any) have to be handled in the event loop.
If you want to handle errors directly with xcb_request_check instead, use xcb_set_selection_owner_checked. See xcb-requests(3) for details.
ERRORS
xcb_atom_error_t
selection does not refer to a valid atom.
SEE ALSO xcb-requests(3), xcb_set_selection_owner(3)AUTHOR
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
XCB 2014-06-10 xcb_set_selection_owner(3)