Create a new account
Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.
Does anyone know of a Linux utility that will let me redirect STDIN to the clipboard? I've been searching high and low and can't seem to find anything. Essentially, I'm looking for something like pbcopy.
#!/usr/bin/perl -wuse strict;use Win32::Clipboard;
Win32::Clipboard->Set( join("", <STDIN>) );
Looks perfect, but it's a no-op on my system. It installed just fine, but even the example programs don't do anything :/
Fedora Core 2. I should upgrade on day, but I know so little about Linux internals that I'm scared to.
Here's a short TCL/Tk script that does it, based on something similar I had for pasting. It's quite suboptimal, but should give the idea. Reimplementing in perl, and incorporating some smart forking and one-daemon-per-desktop code would be really nifty! ;)
#!/usr/bin/wish -f# xcopy - set the current string selection to whatever's passed in on stdin set text [read stdin] # Set up the data handler ready for
Get More Comments