Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pbcopy(1) [osx man page]

PBCOPY(1)						      General Commands Manual							 PBCOPY(1)

NAME
pbcopy, pbpaste - provide copying and pasting to the pasteboard (the Clipboard) from command line SYNOPSIS
pbcopy [-help] [-pboard {general | ruler | find | font}] pbpaste [-help] [-pboard {general | ruler | find | font}] [-Prefer {txt | rtf | ps}] DESCRIPTION
pbcopy takes the standard input and places it in the specified pasteboard. If no pasteboard is specified, the general pasteboard will be used by default. The input is placed in the pasteboard as plain text data unless it begins with the Encapsulated PostScript (EPS) file header or the Rich Text Format (RTF) file header, in which case it is placed in the pasteboard as one of those data types. pbpaste removes the data from the pasteboard and writes it to the standard output. It normally looks first for plain text data in the pasteboard and writes that to the standard output; if no plain text data is in the pasteboard it looks for Encapsulated PostScript; if no EPS is present it looks for Rich Text. If none of those types is present in the pasteboard, pbpaste produces no output. * Encoding: pbcopy and pbpaste use locale environment variables to determine the encoding to be used for input and output. For example, absent other locale settings, setting the environment variable LANG=en_US.UTF-8 will cause pbcopy and pbpaste to use UTF-8 for input and output. If an encoding cannot be determined from the locale, the standard C encoding will be used. Use of UTF-8 is recommended. Note that by default the Terminal application uses the UTF-8 encoding and automatically sets the appropriate locale environment variable. OPTIONS
-pboard {general | ruler | find | font} specifies which pasteboard to copy to or paste from. If no pasteboard is given, the general pasteboard will be used by default. -Prefer {txt | rtf | ps} tells pbpaste what type of data to look for in the pasteboard first. As stated above, pbpaste normally looks first for plain text data; however, by specifying -Prefer ps you can tell pbpaste to look first for Encapsulated PostScript. If you specify -Prefer rtf, pbpaste looks first for Rich Text format. In any case, pbpaste looks for the other formats if the preferred one is not found. The txt option replaces the deprecated ascii option, which continues to function as before. Both indicate a preference for plain text. SEE ALSO
ADC Reference Library: Cocoa > Interapplication Communication > Copying and Pasting Carbon > Interapplication Communication > Pasteboard Manager Programming Guide Carbon > Interapplication Communication > Pasteboard Manager Reference BUGS
There is no way to tell pbpaste to get only a specified data type. Apple Computer, Inc. January 12, 2005 PBCOPY(1)

Check Out this Related Man Page

GPBS(1) 						       GNUstep System Manual							   GPBS(1)

NAME
gpbs - GNUstep PasteBoard Server SYNOPSIS
gpbs DESCRIPTION
The gpbs daemon serves as a clipboard/pasteboard for GNUstep programs, handling the copying, cutting and pasting of objects as well as drag and drop operations between applications. Every user needs to have his own instance of gpbs running. While gpbs will be started automatically as soon as it is needed, it is recommend to start gpbs in a personal login script like ~/.bashrc or ~/.cshrc. Alternatively you can launch gpbs when your windowing system or the window manager is started. For example, on sys- tems with X11 you can launch gpbs from your .xinitrc script or alternatively - if you are running Window Maker - put it in Window Maker's autostart script. See the GNUstep Build Guide for a sample startup script. OPTIONS
-NSHost <hostname> attaches gpbs to a remote session. --GSStartupNotification sends a notification through the NSDistributedNotificationCenter (i.e. gdnc) so that apps know that it has started up. This is only relevant if the application itself tries to startup gpbs (which means gpbs was not started at session login). --daemon starts gpbs as a daemon - mostly this means that all output gets sent to syslog rather than the terminal. --no-fork does not fork a separate process --verbose makes bs his logging more verbose DIAGNOSTICS
gdomap -L GNUstepGSPasteboardServer will lookup instances of gpbs. Alternatively, gdomap -N will list all registered names on the local host. BUGS
Versions of gpbs up to (including) 1.7.2 have problems with copy and paste of mulit-lingual text, as it used the atom XA_STRING alone to exchange string data between X clients (and thus GNUstep clients). This means gpbs is inherently unable to do cut-and-paste with charac- ters other than ISO Latin1 ones, TAB, and NEWLINE. SEE ALSO
gdnc(1), gdomap(8), GNUstep(7) xinit(1) wmaker(1) The GNUstep Build Guide example startup script: <http://gnustep.made-it.com/BuildGuide/index.html#GNUSTEP.SERVICES> HISTORY
Work on gdnc started August 1997. This manual page first appeared in gnustep-back 0.8.8 (July 2003). AUTHORS
gpbs was written by Richard Frith-McDonald <rfm@gnu.org> This man page was written by Martin Brecher <martin@mb-itconsulting.com> with contributions from Kazunobu Kuriyama <kazunobu.kuriyama@nifty.com>. This man page was updated September 2006 by Dennis Leeuw (dleeuw@made-it.com) with notes by Adam Fedor (fedor@doc.com). GNUstep September 2006 GPBS(1)
Man Page