I have a Python script that copies a couple of DLL's and EXE to a directory before running the EXE. It can be a fresh copy or the files can already be in the target directory and are then overwritten. The script uses shutil.copy() to copy the files and that works but as the files are copying processing continues and the script tries to run the files mid copy, causing an error.
I need a way to wait for the files to finish copying before the script continues. Putting the thread to sleep isn't good enough, calling os.system("copy ...") also doesn't work, using os.path.exist() won't work because the file will exist during the copy.
Seems a utility called "xclip" and "xsel" are required, but is there anything simpler, that doesn't require extra utilities, along the lines ofCode:cat foo.txt > clipboardThis would for GNOME.
I want to copy a highlighted field to the clipboard (not the copy/paste within vim but the clipboard that can be pasted outside of vim). I can do this by using the mouse but using the visual command (v) and then the yank command (y) does not do that.Is there a way to do this without the mouse?
I would like to set Y and P to copy and paste directly to the system clipboard instead of vim buffer. I don't want any additional commands. Just the normal ones, but they should copy to and paste from the system clipboard and bypass the vim buffer.
Tried this, but there's no such a command in Arch.And this also doesn't work:Code:find ~ | grep -i pidgin | xclipboard Error: another clipboard is already running
Just installed 10.10 32-bit on a Lenovo T61p laptop, and used Remote Desktop Viewer (version 2.3.2) to VNC into another system. I can copy from an application on 10.10 and then paste into a window in the VNC connection (e.g. to xterm or emacs), but I cannot do the reverse. When I try to paste, I get garbage displayed. For example, I selected "ls -l" from an xterm, which should have copied to the clipboard. When I paste this into an e-mail message, I get junk.
Here is what Emacs in hexl-mode says about that text: 7852 3109 05 xR1.. It shows as "xR1" some whitespace and then a tiny graphical box symbol with 00 and 05 in it. I'll try to paste it on the next line: Is this a known bug? Is there a workaround? Another app I can use? xR1 This same VNC connection works fine, when I use 10.04.
I am using XMing+Putty to access a Linux machine from an XP32 machine. I can copy text from windows and paste it to Linux fine, but I can't copy from Linux and paste to Windows consistently. If I try several times (or hold down the paste keystroke) it will eventually paste; sometimes several times!
I would like to improve the consistency of my Linux to Window pastes. I have per-mutated every combo of Clipboard and Clipboard2. I can not edit /etc/gdm/custom.conf like some other fixes suggest. I have been informed the Linux admins will not allocate resources to resolve this problem in the near future so any fixes need to be Windows side or able to be done without root/admin privileges.
In windows using remote desktop connection you can press Ctrl+Alt+minus to copy the current window on the remote desktop to the clipboard. How do you do that in Ubuntu's terminal server client? I have not found any key combination that works
My xfce4-screenshooter GUI has the option Copy to the Clipboard, but I could not find this option in its' cI'm trying to bind printscreen key with this. I know that in order for the option to work I need to have the application always running (in GUI thre is option Close the application after screenshot , again somenthing that I can not find in command line).
What is everyone's favorite screenshot programs? I really don't like the gnome one. A timer feature is very important to me and the gnome one doesn't have it.
I found the Xfce4 Screenshooter and it has a timer. Are there any other good ones that other people like? If there was a way to copy the picture to your clipboard that would make me even happier. I almost always edit my screenshots after I take them so that would be even more helpful. [url] [url]
How to remove the auto tab ? After i wrote ( { )In the terminal there is auto tab .. this looks handy at first but :When i copy paste from universal clipboard it keeps tabbing making the scripts very long .. Is there a setting how to remove it
i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.
I'd like to have a Linux machine run what Windows users typically call a clipboard as a network service on my small LAN (about 10 machines). More specifically I am looking to have Linux run the clipboard service centrally in the LAN with both Windows and *nix machines able to connect to it as opposed to the peer-to-peer sync model that I am seeing in almost all of the applications I've discovered thus far.
The clipboard corrupts whatever I copy to - when pasting to anywhere. It could be copying a URL in FIrefox to Gedit or from Gedit to Gedit. Always the same.
But this only happens when I am running Virtualbox - Win XP Pro SP3. I have been running the same VM for years - this is a new problem.
I googled a bit and most stated to upgrade to the latest (which I did) and run the Guest Additions (which I have).
I have allocated 1 GB of memory to the VM (out of 3GB). Memory on Ubuntu side is fine:
Code:
Copying and pasting within the VM works fine. And a lot of the memory is free:
How I send clipboard to festival or what is wrong here? #!/bin/bash
text='xclip -selection clipboard -o' echo '(voice_nitech_us_awb_arctic_hts) (SayText "$text")' | festival
Says only "dollar text" to me. Just this works, but I want other script with different voice: #!/bin/bash xclip -selection clipboard -o | festival --tts Voice changed here: echo '(voice_nitech_us_awb_arctic_hts) (SayText "say this please")' | festival
I have a function definition in a Python 2.x script which take a tuple as one of its arguments, but 2to3 has no answers nor any of my searching on how to represent the same in Python 3.x
I am working on an application in Motif and C++, which uses an XRT Table. With the XRT Table being an infrequently used product, it is hard to find good documentation on it, and one area in particular is sorely lacking... a good explanation on how to copy text from the table to the clipboard used by other X11 applications. I've come across an example application that demonstrates how to copy text to the clipboard, but I cannot seem to merge that knowledge with what I'm provided with the XRT Table API. Does anyone have any knowledge in using the XRT Table, and in particular, with copying selected fields within the table to the clipboard?
How do you set up a command just to copy a file's full path name (%F) onto the clipboard?(I can't seem to get this without copying the contents of the file.)
I'm trying to write a GUI text encryption application. I wrote the encryption system in a No GUI application like this::
[Code]...
Now I'm trying to write a GUI version, using the same algorithm. Here goes a rough image of my main window code. If you scroll down you'll observe a coloured part. As you see, the text in the first textbox gets copied into clipboard. That is the part where my encryption system should encrypt the data in the clipboard, and copy it again, and later on the new data will be pasted. How am I supposed to write that? If I have to use another signal, what is the receiver of that signal?
I am trying to install a module in openerp 6 It requires Pyuno that ships with libre/open -office If i go import uno -- no module called uno but when I go to the /usr/lib64/libreoffice/base3.4/programs and python import uno it works
I cant copy the file to python as the versions differ
I want that I click with the mouse on the video, it paused.I notice that there is "BaconVideoWidget" which I guess is the video rendering widget but it don't have signal named "clicked":