General :: Copy To Clipboard Using Bash Command?
Sep 18, 2010Tried 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
View 5 RepliesTried 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
View 5 RepliesIs it possible to copy the output into the clipboard without using the mouse?
For example, I would like to do something like this:
$ pwd >> clipboard
I can copy image in Gimp and paste it to OpenOffice document.
How to do it (copy or paste image) from command line?
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).
View 9 Replies View Relatedinstall imagemagick python, and pygtk.
Code:
sudo apt-get install imagemagick python pygtk
Now save the following script somewhere as imgclip.py. This is a simple python script which takes an image file and puts it in the gnome-clipboard.
Code:
#! /usr/bin/python
import pygtk
pygtk.require('2.0')
[code]...
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.
View 9 Replies View RelatedI 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?
View 10 Replies View RelatedI 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.
View 5 Replies View Relatedcopy a jpeg or a png and place it into the clipboard of X11 of my icewm. which program can do cat "myfile.jpg" > ?theclipboardofx11?
View 10 Replies View Relatedi'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.
View 1 Replies View RelatedI having a hard time figuring out why this code works in an interactive ipython shell, but it gives a blank clipboard when run in a bash terminal.
Code:
#! /usr/bin/python2.6
#
[code]...
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.
Anyone know how to send output to buffer via putty? Currently I am using vim with windows copy menu, very slow and tedious.
I download xclip but i got the following error:
Quote:cat ../mnt/fs1/tmp/rcentre01.log|xclip
Error: Can't open display: (null)
I want to install a clipboard that will copy from the internet and paste in office. I looked in the package manager and saw a plethora of clipboards.
View 7 Replies View RelatedIn 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
View 2 Replies View RelatedWhat 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 copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).
More details: I have to import a repository from GIT to Perforce. I want that all Perforce depot files are Read-Only (that is how Perforce was designed), while all other files that were derived/copied from depot files are writable. Currently if a Makefile tries to copy a Read-Only file then the derived file will also be Read-only. This leads to build-errors when cp tries to overwrite Read-Only file second time. Of course the --force is a workaround here but then the derived file is also Read-Only. Also I do not want to mess with "chmod" after each "cp" command - I will do that only as the last resort.
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
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
View 1 Replies View RelatedI create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:
Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END
[code]...
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.
View 2 Replies View Relatedwhat command do i use to copy .bash_history to /tmp location?
View 9 Replies View RelatedIs there a vim command or sequence of commands that will append the current line into the clipboard? Given the example below:
4
5
3
1
2
Lets say I wanted to cut 3, 4, 5 (in that order) then paste them below 2 so that the numbers are in order?
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:
Code:
Bash's command history is great, especially it is useful when adding the history -a command to the COMMAND_PROMPT.However, I'm wondering if there is a way to log the commands to a file as soon as the Return key is pressed, e.g. before starting the command and not on completion of the command (using the COMMAND_PROMPT option would save the command once the prompt is there again).
I read about auditing programs like snoopy and session recorder like script but I thought they're already too complex for the simple question I have. I guess that deactivating that script logs all the output of the command would lead already in the right direction but isn't there a quicker way to solve that probelm?
Possible Duplicate: What does this cryptic bash command mean? Why this command crashes Linux? :(){ :|:& };:
View 4 Replies View RelatedWhat's the command to delete bash command history?
View 4 Replies View RelatedCan save an image from clipboard into file using command line?
may be image magic?
I know how to redirect the output of a terminal to a file. For example, if I want to list all the files in ~/Documents and output to a file called test.txt, I would do this: ls ~/Documents > test.txt The question is, can I copy the output to test.txt AFTER I have carried out the command? This would mean that I wouldn't have to know in advance whether I want to copy the output to file. I want to do something like this: ls ~/Documents Then this: <bash command for copying standard output to test.txt>
View 2 Replies View Related