Find the answer to your Linux question:
Results 1 to 3 of 3
The Cygwin environment (a Linux-like environment for Windows) has a command named putclip .exe, which copies it's stdin to the Windows clipboard. I would love to be able to make ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    510

    Does putclip exist for Linux? i.e. can stdout go to the clipboard?


    The Cygwin environment (a Linux-like environment for Windows) has a command named putclip.exe, which copies it's stdin to the Windows clipboard.

    I would love to be able to make the output of a GNU/Linux command in a terminal go directly to the X clipboard so I can paste it into the message editor right here, or into another app, such as a text editor.

    Imagine this:
    $ grep ip_forward /etc/sysctl.conf | putclip

    Then in the message editor, CTRL-V pastes the result.
    Can it be done?

  2. #2
    Linux Newbie
    Join Date
    Aug 2006
    Posts
    226
    There is a program called xclip that will do what you are asking.

  3. #3
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    510
    EXCELLENT!

    I've been wishing I had something like xclip for years. I finally got around to asking.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •