ls_chdir
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.
#include <lsf/lsf.h>
int ls_chdir(char *host, char *clntdir)
Data Structures:
- Parameters:
*host The remote host containing the client directory. *clntdir The full pathname of a valid directory on the host host. Define Statements:
- none
- none
Errors:
- Returns:
- int:0
Function was successful.int:-1
Function failed.int:-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.Equivalent line commands:
- Systems that conform to the Single UNIX specification are not required to detect error conditions for this function.
Files:
- none
- ${LSF_ENVDIR:-/etc}/lsf.conf
- See also:
- none
Date Modified: 16 Jul 2014
Terms of Use
Copyright © 1994-2014 International Business Machines Corp.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.