tags:

views:

23

answers:

1

How do you copy text to the clipboard in C or with a Command-Line command?

+4  A: 

pbcopy and pbpaste are your friends on the command line:

echo 'send' | pbcopy
pbpaste > receive.txt

Take a look at the Pasteboard Manager Reference and guide for details on doing this in C.

WhirlWind