Re: Command-line copy-paste?

"Dan Mahoney, System Admin" <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
On Thu, 16 Dec 2010, Yang Zhang wrote:

> Is there any way to pipe some content into screen's copy-paste buffer? Thanks!

Yes, you can use the "bufferfile" command to set it to an arbitrary 
textfile, and "readbuf" to effectively do a "copy".

You may also find useful: I have some switches with a crappy CLI that if 
you paste too much info too fast, it drops, so I typed the following 
commands into screen to make it work:

bufferfile /home/danm/summit48.cfg
slowpaste 120
readbuf
paste .

I could have also just put these in a file and used screen's "source" 
command to run them all.

HTH,

-Dan

-- 

"It's three o'clock in the morning.  It's too late for 'oops'.  After
Locate Updates, don't even go there."

-Paul Baecker
  January 3, 2k
  Indeed, sometime after 3AM

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.