X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=Wi ZygbVMnWsjAQx1IIu/X8mRU8kk3cUulNnkQXU8GbzsGLpW5TGy+TTJUGRCn1M824 bSmV6T6AocONf+2ruMiIpdw+JyUM2ufDmwTStDiIW1nGy/4PCIekWW8F2A/DlQDS gf7TBaOlxjxNJHrQafQIjCJAvqpIRO6N/WIoE8ecQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=vEeNzJOp B5W/yr6vnaITUFPmCOY=; b=D2VqluIKibOyWHqpQq0NjGE+K64UoKrWGew0jjpo nzTOCshX/esfBEZglRV4zi5bsh1jD2sgzQDYDFyEYnTP8doKK7uYogVG5u1IAbDz ULCb68x2lmZa/XQEJcq8I/J8Scxj2RPB3mg8SlcgblVMXE5Jzp2S2qyC8ZihFz6a pkA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f181.google.com MIME-Version: 1.0 X-Received: by 10.50.119.195 with SMTP id kw3mr14518168igb.5.1413766685055; Sun, 19 Oct 2014 17:58:05 -0700 (PDT) In-Reply-To: References: Date: Sun, 19 Oct 2014 20:58:05 -0400 Message-ID: Subject: Re: windows clipboard, getclip, putclip, clip, etc From: ping song To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes experts: I tested this whole day and couldn't find a solution... so I wanted to archive same goal as described in this post: http://stackoverflow.com/questions/1152362/getting-items-on-the-local-clipboard-from-a-remote-ssh-session I'm on windows (cygwin) machine A and ssh into linux machine B. I hope to send some text from B directly to windows clipboard of A, and so I can paste them into notepad or any other windows APPs, without bothering a temp file... what my test shows that what was sent over to /dev/clipboard or clip via the revert ssh session (from B to A) was just belonging to that ssh user specifically, meaning my current windows clipboard could not be changed at all...here is the code to demonstrate the issue: from cygwin terminal in windows machine A: ssh to B with user user1; //and sent some text to A: ping AT ubuntu1404:~/temp-transfer$ cat test-ls.md | ssh ping AT machineA "cat > temp.txt; cat temp.txt >> /dev/clipboard" now in A I open notepad, press Ctrl-V, I don't see content of test-ls.md, but just see those previous texts I copied manually in A. now if I ssh into myself from A: ssh user AT 127 DOT 0 DOT 0 DOT 1 cat /dev/clipboard then I can see the file content of test-ls.md printed in the terminal. but still, I can't make them in notepad. so it looks like, the clipboard is per windows user. but the thing is I'm currently logging in windows with user1 too. guess there are something I don't understand here , but how do I archive what I wanted? I hope to send the text to a clipboard that I can just put in notepad with a ctrl-v .... thanks in advance. still researching... regards ping -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple