Knowledge Center Contents Previous Next |
ls_chdir()
DESCRIPTION
ls_chdir() sets the application's working directory on the remote host to the directory specified by clntdir. If the application subsequently requests remote execution with the flag REXF_CLNTDIR, the Remote Execution Server (RES) uses the application's working directory on the remote host, instead of the application's local current working directory, as the current working directory for the remote execution. The RES keeps a working directory for each application, which is initialized as the user's home directory. The application can call this routine to change its working directory on a particular host. clntdir must be the full pathname of a valid directory on the host host.
Any program using this routine must call ls_initrex() first.
Any program using this API must be setuid to root if LSF_AUTH is not defined in the lsf.conf file.
Sets an application's working directory on a remote host to a specified directory.
SYNOPSIS
#include <lsf/lsf.h> int ls_chdir(char *host, char *clntdir)PARAMETERS
*host
The remote host containing the client directory.
*clntdir
The full pathname of a valid directory on the host host.
RETURN VALUES
integer:0
Function was successful.
integer:-1
Function failed.
integer:-2
A warning if the RES fails to check clntdir due to permission denial. This is a temporary mechanism to get around the root uid mapping problem of NFS.
ERRORS
Systems that conform to the Single UNIX specification are not required to detect error conditions for this function. - Error handling
SEE ALSO
Related APIs
none
Equivalent line command
none
Files
${LSF_ENVDIR-/etc}/lsf.conf
Platform Computing Inc.
www.platform.com |
Knowledge Center Contents Previous Next |