TotalNET Advanced Server 5.2 Reference Manual

ncput

This command copies local files to remote NetWare servers.

Location

TNHOME/usr/bin

Usage

ncput -s servername -u username {-p password|-P}
 	[-C charset] localfile [-v] volume:[/]path

Options

-s servername

Specify the name of the remote server. This does not necessarily coincide with the UNIX host name. 

-u username

Specify the name of the user on the remote server. 

-p password

Display username's password on the command line.

-P 

Prompt for username's password.

-C charset

Specify the client character set. If not specified, the character set defaults to builtin-codepage-437. Valid character sets include:

builtin-mac-roman

builtin-iso-latin-1

builtin-unicode

You can use additional character sets if you install TAS. 

localfile

Specify the path and name for the local copy of the file. Enter a period (.) to use the current directory and the same file name as on the remote host. Enter a hyphen (-) to copy the file to "standard output".

-v volume

Specify the name of the volume on which the remote file resides. 

/path

Specify the path to the remote file. Do not use wildcards. 

Examples

  1. Use the following command to copy the file enchant.doc to the volume sys in the directory midsummer on the remote server forest and prompt for a password, as user puck:


    ncput -s forest -u puck -P enchant.doc -v sys:/midsummer
  2. Use one of the commands below to copy the file burn.doc to the NetWare volume marshmallows on the server truck, as user steve with password fire. The file burn.doc resides in the root of the volume.


    ncput -s truck -u steve -p fire burn.doc -v marshmallows:/burn.doc

    ncput -s truck -u steve -p fire burn.doc marshmallows:/burn.doc
  3. Use the following command to copy the file dexter.doc from the server invention to the NetWare volume laboratory and prompt for a password, as user deedee:


    ncput -s invention -u deedee -P dexter.doc -v laboratory:/dexter.doc