10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
I have a user Bob on a RHEL 7 server1. Where his script area is "/home/Bob/scripts/" and he is the owner for this directory.
On the server1, there is a NFS mount from another server2, with path as "/global/work/" and Bob is the owner for this directory too in server2. (Same UID and GID... (5 Replies)
Discussion started by: karumudi7
5 Replies
2. Shell Programming and Scripting
Hello
I have a file containing the list of different folders like this file_list.txt:
/s8/tests/test1
/s8/tests/tests/test2
/s8/tests/test2
/s8/tests/tests/test2/test5
I want a script to put the owner user of each folder in front of it in the text file.
So the reult would become... (5 Replies)
Discussion started by: Johanni
5 Replies
3. Solaris
i need to do the following operations in solaris 10:
1.change owner and group owner for files which are not owned by the current user and user group
2.to can delete files in the /tmp directory which are not of the current user
3. allow to a standard user the deletion of files in the /tmp... (1 Reply)
Discussion started by: sirmark
1 Replies
4. Shell Programming and Scripting
I need to connect my Oracle 11g DB from shell script with 'sysdba' permissions. To do this I have to switch user from 'root' to 'oracle'.
I've tried the following with no success.
su - oracle -c "<< EOF1
sqlplus -s "/ as sysdba" << EOF2
whenever sqlerror exit sql.sqlcode;... (2 Replies)
Discussion started by: NetBear
2 Replies
5. Shell Programming and Scripting
Good evening everybody,
I have to find the user owner of the most recently file in the system
How can I do? :confused: (5 Replies)
Discussion started by: Guccio
5 Replies
6. UNIX for Advanced & Expert Users
Hi all,
We have some files are under 744 permissions and the the owner is say owner1 and group1.
Now we have another user owner2 of group2, owner2 can remove files of the owner1 and the permission of those files are 744, unix admin told us he did some config at his side so we can do that.
... (14 Replies)
Discussion started by: TheGunMan
14 Replies
7. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Need to verify that all user home directories are writable only by their owner on Solaris. The script posted below is workable but it is taking a long time to display the results, and I don't seem to be able to fix it or find any... (6 Replies)
Discussion started by: NuuBe
6 Replies
8. Shell Programming and Scripting
Hi, I'm currently working on my school assignment on how to verify that all user home directories are writable only by their owner on Solaris with VMware. But I'm not sure why my codes take a very long time to display the results. My friend says it's the `su - $i -c "ls -ld" 2> /dev/null | grep... (1 Reply)
Discussion started by: NuuBe
1 Replies
9. UNIX for Advanced & Expert Users
Folks,
I have a problem with a particular file, that seems to have some kind of lock on it, that takes around 1 hour approx to timeout. I have used lsof and nothing has an open file handle on it, yet I cannot open it. My user/group owns the file and I can create edit/delete files in... (6 Replies)
Discussion started by: scottrus
6 Replies
10. UNIX for Dummies Questions & Answers
I am trying to download OpenBSD image files but I don't know which ones I am supposed to download. I am just getting them from their main site OpenBSD.org. Could any one tell me which ones I'll need? (1 Reply)
Discussion started by: jasonfrost
1 Replies
XSetSelectionOwner(3X11) MIT X11R4 XSetSelectionOwner(3X11)
Name
XSetSelectionOwner, XGetSelectionOwner, XConvertSelection - manipulate window selection
Syntax
XSetSelectionOwner(display, selection, owner, time)
Display *display;
Atom selection;
Window owner;
Time time;
Window XGetSelectionOwner(display, selection)
Display *display;
Atom selection;
XConvertSelection(display, selection, target, property, requestor, time)
Display *display;
Atom selection, target;
Atom property;
Window requestor;
Time time;
Arguments
display Specifies the connection to the X server.
owner Specifies the owner of the specified selection atom. You can pass a window or
property Specifies the property name. You also can pass
requestor Specifies the requestor.
selection Specifies the selection atom.
target Specifies the target atom.
time Specifies the time. You can pass either a timestamp or
Description
The function changes the owner and last-change time for the specified selection and has no effect if the specified time is earlier than the
current last-change time of the specified selection or is later than the current X server time. Otherwise, the last-change time is set to
the specified time, with replaced by the current server time. If the owner window is specified as then the owner of the selection becomes
(that is, no owner). Otherwise, the owner of the selection becomes the client executing the request.
If the new owner (whether a client or is not the same as the current owner of the selection and the current owner is not the current owner
is sent a event. If the client that is the owner of a selection is later terminated (that is, its connection is closed) or if the owner
window it has specified in the request is later destroyed, the owner of the selection automatically reverts to but the last-change time is
not affected. The selection atom is uninterpreted by the X server. returns the owner window, which is reported in and events. Selections
are global to the X server.
can generate and errors.
The function returns the window ID associated with the window that currently owns the specified selection. If no selection was specified,
the function returns the constant If is returned, there is no owner for the selection.
can generate a error.
requests that the specified selection be converted to the specified target type:
o If the specified selection has an owner, the X server sends a event to that owner.
o If no owner for the specified selection exists, the X server generates a event to the requestor with property
The arguments are passed on unchanged in either of the events. There are two predefined selection atoms: PRIMARY and SECONDARY.
can generate and errors.
Diagnostics
A value for an Atom argument does not name a defined Atom.
A value for a Window argument does not name a defined Window.
See Also
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XSetSelectionOwner(3X11)