Sponsored Content
Top Forums Shell Programming and Scripting Auto-executing a script by plugging in a USB Stick - How? Post 302419530 by curleb on Friday 7th of May 2010 12:10:44 PM
Old 05-07-2010
and how exactly would this be safe for the owner of the workstation...? or the network...?
 

10 More Discussions You Might Find Interesting

1. Linux

bootable USB Stick || Fedora 8

Hello Everybody I am planning to install Fedora core 8 on an extra PC I have; what I wanna do is to boot from a USB stick then install Fedora from an ISO image I already have via FTP. Could any one tell me how to create bootable USB Stick for Fedora as I already found how to install from FTP... (0 Replies)
Discussion started by: ahmed_nasr2001
0 Replies

2. UNIX for Dummies Questions & Answers

Aix usb stick

I have a P-Series Machine running AIX 5.3, it has a USB Port on the front of the server, can I use a USB Stick on AIX platforms?? if so how..:rolleyes: (2 Replies)
Discussion started by: BEVAN
2 Replies

3. Filesystems, Disks and Memory

Mount USB stick...

Dummies questions, perfect for this. I cannot mount my idiotic usb stick on Slackware, I input the following on non-graphic mode as root: Mount -t vfat /dev/sdc1/usbstick usbstick is the folder i created for mounting my USB, the file system is FAT, and everytime I input that I get some kind... (2 Replies)
Discussion started by: Dax01
2 Replies

4. BSD

Mounting a USB stick in FreeBSD

When mounting a USB stick or pen drive on a FreeBSD machine I always issue the following command: mount -t msdosfs /dev/da0s1 /mnt Something I have always wondered is what the option msdosfs stands for and more importantly, why it is necessary. (7 Replies)
Discussion started by: figaro
7 Replies

5. Ubuntu

Ubuntu on USB stick?

Hey Guys I have an Ubuntu CD and I was thinking of creating like a bootable hard drive with various OS so that I can just boot OSs with t drive and not require the CDs. I was just wondering is there a way I can do this, like have Ubuntu boot from a USB stick? If yes how is that possible(even if I... (3 Replies)
Discussion started by: rbansal2
3 Replies

6. SCO

Mount USB stick

hi Howto mount an USB stick under SCO 5.0.7? BTW ist it possible to mount USB stick in the command line using 'tools' at the Boot: prompt from OpenServer Release 5.0.7 installation CD? (1 Reply)
Discussion started by: ccc
1 Replies

7. Shell Programming and Scripting

Auto run script on USB device

Okay I want to write a script that I put on a jump drive. And when you plug the USB in this script executes. How would i go about doing this? I don't care what the program does right now. I just want to know how this would be done. Any ideas? (1 Reply)
Discussion started by: cbreiny
1 Replies

8. Ubuntu

Installing UBUNTU on USB stick

I'd like to install the OS on my stick. I would like to be able to save my works there and install apps or customize the OS. What can I do Ps. At home I use an iMac, but in the school where I work there are only PC... Ty (2 Replies)
Discussion started by: Fabio_Puricelli
2 Replies

9. SCO

How to use USB Stick in UNIXware?

I am trying to use a USB (Pen?) drive on Unixware 7.1.4. The USB stick is in the machine and the machine recognises it when I enter usbprobe as follows: Path - Address Description ----------------------------- +++++++ BUS #2 0 - 1 - HUB "UHCI Root Hub" 1 - 2 - HID "Chicony Wireless Device"... (1 Reply)
Discussion started by: BernP
1 Replies

10. BSD

Bootable usb-stick, need help, sos

I would probably set all my rubber points here to get some real help for creating a boot device on a usb-stick. There is no CD-drive on this machine, thats why I need to use a usb-stick. And scrumming in a CD-drive to fuddle around in the fstab or something like that is out of reach. My wisdom so... (9 Replies)
Discussion started by: 1in10
9 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)
All times are GMT -4. The time now is 11:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy