Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

synce-pcp(1) [debian man page]

PCP(1)							   http://synce.sourceforge.net/						    PCP(1)

NAME
pcp - copy files SYNOPSIS
pcp [-d LEVEL] [-p DEVNAME] [-h] [:]SOURCE [[:]DESTINATION] DESCRIPTION
pcp copies a file on a device connected through SynCE or between a device connected through SynCE and host PC. Forward slashes ('/') in remote file names specified on the command line are converted to backward slashes (''). This tool must be run as the same user as the dccmd daemon. OPTIONS
-r Copy directories recursively. -d LEVEL Set debug log level: 0 - No logging (default) 1 - Errors only 2 - Errors and warnings 3 - Everything -p DEVNAME Use the device with the given name, instead of the default. -h Display help message. [:]SOURCE Full path to the source filename. When the filename is prefixed with a colon (':'), it will be treated as a remote filename, other- wise as a local filename. [:]DESTINATION Full path to the destination filename. When the filename is prefixed with a colon (':'), it will be treated as a remote filename, otherwise as a local filename. If this parameter is omitted and the source filename is local, the local file will be copied to a file with the same name in the "My Documents" directory on the device connected through SynCE. If this parameter is omitted and the source filename is remote, the remote file will be copied to a file with the same name in the current directory. EXAMPLES
Copy a file from host computer to remote device: pcp download/game.cab ":/Temporary Files/game.cab" Copy a file from remote device to host computer: pcp ":/My Documents/snore.wav" /tmp/snore.wav Copy a file from host computer to remote device into the "My Document" folder - you can leave off the last parameter: pcp "work/mytext.txt" Copy a file from remote device to host computer into the current directory - you can leave off the last parameter: pcp ":/My Documents/snore.wav" Copy a file from one location on the remote device to another: pcp ":/My Documents/important.pwi" ":/My Documents/important.backup.pwi" AUTHOR
This manual page was written by David Eriksson <twogood@users.sourceforge.net>. SEE ALSO
synce(1) pcp(1) pls(1) prm(1) pmkdir(1) prmdir(1) The SynCE project November 2002 PCP(1)

Check Out this Related Man Page

PMGETCONTEXTHOSTNAME(3) 				     Library Functions Manual					   PMGETCONTEXTHOSTNAME(3)

NAME
pmGetContextHostName - return the hostname associated with a Performance Co-Pilot context C SYNOPSIS
#include <pcp/pmapi.h> const char *pmGetContextHostName(int id); cc ... -lpcp DESCRIPTION
Given a valid PCP context identifier previously created with pmNewContext(3) or pmDupContext(3), the pmGetContextHostName function returns the hostname associated with id. If the context id is associated with an archive source of data, the hostname returned is extracted from the archive label using pmGetArchiveLabel(3). For live contexts, an attempt will first be made to retrieve the hostname from the PCP collector system using pmFetch(3) with the pmcd.hostname metric. This allows client tools using this interface to retrieve an accurate host identifier even in the presence of port forwarding and tunnelled connections. Should this not succeed, then a fallback method is used. For local contexts - with local meaning any of DSO, ``localhost'' or Unix domain socket connection - a hostname will be sought via gethostname(3). For other contexts, the hostname extracted from the initial context host specification will be used. RETURN VALUE
If id is not a valid PCP context identifier, this function returns a zero length string and hence never fails. PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura- tion file, as described in pcp.conf(5). Values for these variables may be obtained programmatically using the pmGetConfig(3) function. SEE ALSO
PCPIntro(1), PMAPI(3), gethostname(3), pmDupContext(3), pmFetch(3), pmGetArchiveLabel(3), pmNewContext(3), pcp.conf(5) and pcp.env(5). Performance Co-Pilot PCP PMGETCONTEXTHOSTNAME(3)
Man Page