FCD

Section: User Commands (1)
Updated: 8 December 1991
Index Return to Main Contents
 

NAME

fcdcmd, fcd - change client's current working directory in the FSP database  

SYNOPSIS

fcdcmd path

fcd path  

DESCRIPTION

If no paths are given, / is used as the current working directory. If path begins with a /, fcdcmd uses it as the current working directory. Otherwise, fcdcmd appends path to the end of the current working directory. In both cases, fcdcmd simplifies the new path and writes it to the stdout. In order for the effect of fcdcmd to be felt in subsequent FSP transactions, user needs to save the stdout output in the FSP_DIR variable. If the change is successful, fcdcmd will display the protection setting of the new working directory.

fcdcmd will perform csh file name globbing based on file and directory information obtained from the FSP database.

Since user's command shells generally cannot do the proper globbing for this program, it is recommended that user defines a shell alias or fucntion to turns off command shell globbing before running this program. csh example:

alias fcd setenv FSP_DIR \`\(set noglob\; exec fcdcmd \!\*\)\`
 

ENVIRONMENT

The following variables associate this program with a FSP database:

FSP_HOST
The name or internet number of the machine with the FSP server.
FSP_PORT
The port number of the UDP socket used by the FSP server.
FSP_LOCALPORT
The port number of the UDP socket used by FSP client utilities. The only reason to define this varable is to ensure mutual exclusion of client commands when none of the udp packet multiplexing mechanisms are enabled during compile time. You may pick any number not currently used for other purposes.
FSP_DIR
The current working directory of the client in the FSP database. The root of the database is /.
 

SEE ALSO

fcatcmd(1), fcdcmd(1), fgetcmd(1), fgrabcmd(1), flscmd(1), fmkdir(1), fprocmd(1), fput(1), frmcmd(1), frmdircmd(1), fver(1), fspd(1)
 

BUGS

If more than one paths are given, only the first one will be used. The rest will be silently ignored.


 

Index

NAME
SYNOPSIS
DESCRIPTION
ENVIRONMENT
SEE ALSO
BUGS

This document was created by man2html, using the manual pages.
Time: 01:51:09 GMT, July 11, 2022